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/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/advertise_options.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/advertise_service_options.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/callback_queue.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/callback_queue_interface.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/connection.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/connection_manager.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/exceptions.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/file_log.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/forwards.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/init.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/internal_timer_manager.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/intraprocess_publisher_link.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/intraprocess_subscriber_link.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/io.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/master.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/message.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/message_deserializer.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/names.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/network.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/node_handle.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/param.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/parameter_adapter.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/poll_manager.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/poll_set.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/publication.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/publisher.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/publisher_link.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/ros.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/rosout_appender.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/service.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/service_callback_helper.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/service_client.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/service_client_link.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/service_client_options.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/service_manager.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/service_publication.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/service_server.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/service_server_link.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/single_subscriber_publisher.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/spinner.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/statistics.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/steady_timer.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/steady_timer_options.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/subscribe_options.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/subscriber.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/subscriber_link.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/subscription.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/subscription_callback_helper.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/subscription_queue.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/this_node.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/timer.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/timer_manager.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/timer_options.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/topic.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/topic_manager.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/transport/transport.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/transport/transport_tcp.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/transport/transport_udp.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/transport_hints.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/transport_publisher_link.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/transport_subscriber_link.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/wall_timer.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/wall_timer_options.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/xmlrpc_manager.h
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/callback_queue.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/common.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/connection.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/connection_manager.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/file_log.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/init.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/internal_timer_manager.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/intraprocess_publisher_link.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/intraprocess_subscriber_link.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/io.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/master.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/message_deserializer.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/names.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/network.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/node_handle.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/param.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/poll_manager.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/poll_set.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/publication.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/publisher.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/publisher_link.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/rosout_appender.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/service.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/service_client.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/service_client_link.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/service_manager.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/service_publication.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/service_server.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/service_server_link.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/single_subscriber_publisher.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/spinner.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/statistics.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/steady_timer.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/subscriber.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/subscriber_link.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/subscription.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/subscription_queue.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/this_node.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/timer.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/topic.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/topic_manager.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport/transport.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport/transport_tcp.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport/transport_udp.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport_publisher_link.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport_subscriber_link.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/wall_timer.cpp
Examining data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/xmlrpc_manager.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_rosbag/test/double_pub.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_rosbag_storage/src/bag_player.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_rosbag_storage/src/create_and_iterate_bag.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_rosbag_storage/src/swap_bags.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/perf/include/perf_roscpp/inter.h
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/perf/include/perf_roscpp/intra.h
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/perf/src/inter.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/perf/src/intra.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/perf/src/intra_suite.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/perf_serialization/pointcloud_serdes.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/check_master.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/crashes_under_gprof.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/get_master_information.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/handles.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/incrementing_sequence.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/inspection.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/intraprocess_subscriptions.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/latching_publisher.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/left_right.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/loads_of_publishers.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/multiple_init_fini.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/multiple_latched_publishers.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/multiple_subscriptions.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/name_not_remappable.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/name_remapping.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/name_remapping_with_ns.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/namespaces.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/nonconst_subscriptions.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/param_locale_avoidance_test.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/param_update_test.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/parameter_validation.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/params.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/pub_sub.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/publish_constantly.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/publish_empty.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/publish_n_fast.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/publish_onsub.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/publish_unadvertise.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/publisher.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/publisher_for_star_subscriber.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/publisher_rate.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/real_time_test.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/service_adv.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/service_adv_a.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/service_adv_multiple.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/service_adv_unadv.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/service_adv_zombie.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/service_call.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/service_call_expect_b.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/service_call_repeatedly.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/service_call_zombie.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/service_callback_types.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/service_deadlock.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/service_exception.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/service_wait_a_adv_b.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/sim_time_test.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/spinners.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/stamped_topic_statistics_empty_timestamp.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/string_msg_expect.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/sub_pub.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/subscribe_empty.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/subscribe_n_fast.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/subscribe_resubscribe.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/subscribe_retry_tcp.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/subscribe_self.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/subscribe_star.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/subscribe_unsubscribe.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/subscribe_unsubscribe_repeatedly.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/subscriber.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/subscription_callback_types.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/test_ns_node_remapping.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/test_remapping.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/test_search_param.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/timer_callbacks.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/topic_statistic_frequency.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/wait_for_message.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/test_args.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/test_callback_queue.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/test_header.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/test_names.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/test_poll_set.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/test_subscription_queue.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/test_transport_tcp.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/test_version.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test_serialization/src/builtin_types.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test_serialization/src/generated_messages.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test_serialization/src/helpers.h
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test_serialization/src/pre_deserialize.cpp
Examining data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test_serialization/src/serialization.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag/examples/write.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag/include/rosbag/player.h
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag/include/rosbag/recorder.h
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag/include/rosbag/time_translator.h
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag/src/encrypt.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag/src/play.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag/src/player.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag/src/record.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag/src/recorder.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag/src/time_translator.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/aes_encryptor.h
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/bag.h
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/bag_player.h
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/buffer.h
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/chunked_file.h
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/constants.h
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/encryptor.h
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/exceptions.h
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/gpgme_utils.h
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/macros.h
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/message_instance.h
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/no_encryptor.h
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/query.h
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/stream.h
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/structures.h
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/view.h
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/aes_encryptor.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bag.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bag_player.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/buffer.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bz2_stream.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/chunked_file.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/gpgme_utils.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/lz4_stream.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/message_instance.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/no_encryptor.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/query.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/stream.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/uncompressed_stream.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/view.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/test/test_aes_encryptor.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/rosout/rosout.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/rostest/include/rostest/permuter.h
Examining data/ros-ros-comm-1.15.9+ds1/tools/rostest/test/test_permuter.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/topic_tools/include/topic_tools/macros.h
Examining data/ros-ros-comm-1.15.9+ds1/tools/topic_tools/include/topic_tools/parse.h
Examining data/ros-ros-comm-1.15.9+ds1/tools/topic_tools/include/topic_tools/shape_shifter.h
Examining data/ros-ros-comm-1.15.9+ds1/tools/topic_tools/src/demux.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/topic_tools/src/drop.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/topic_tools/src/mux.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/topic_tools/src/parse.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/topic_tools/src/relay.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/topic_tools/src/shape_shifter.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/topic_tools/src/switch_mux.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/topic_tools/src/throttle.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/topic_tools/test/test_shapeshifter.cpp
Examining data/ros-ros-comm-1.15.9+ds1/tools/topic_tools/test/utest.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/message_filters/include/message_filters/cache.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/message_filters/include/message_filters/chain.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/message_filters/include/message_filters/connection.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/message_filters/include/message_filters/macros.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/message_filters/include/message_filters/null_types.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/message_filters/include/message_filters/pass_through.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/message_filters/include/message_filters/signal1.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/message_filters/include/message_filters/signal9.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/message_filters/include/message_filters/simple_filter.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/message_filters/include/message_filters/subscriber.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/message_filters/include/message_filters/sync_policies/approximate_time.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/message_filters/include/message_filters/sync_policies/exact_time.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/message_filters/include/message_filters/synchronizer.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/message_filters/include/message_filters/time_sequencer.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/message_filters/include/message_filters/time_synchronizer.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/message_filters/src/connection.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/message_filters/test/msg_cache_unittest.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/message_filters/test/test_approximate_time_policy.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/message_filters/test/test_chain.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/message_filters/test/test_exact_time_policy.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/message_filters/test/test_simple.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/message_filters/test/test_subscriber.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/message_filters/test/test_synchronizer.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/message_filters/test/time_sequencer_unittest.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/message_filters/test/time_synchronizer_unittest.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/roslz4/include/roslz4/lz4s.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/roslz4/src/_roslz4module.c
Examining data/ros-ros-comm-1.15.9+ds1/utilities/roslz4/src/lz4s.c
Examining data/ros-ros-comm-1.15.9+ds1/utilities/roslz4/src/xxhash.c
Examining data/ros-ros-comm-1.15.9+ds1/utilities/roslz4/src/xxhash.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/roslz4/test/roslz4_test.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/include/xmlrpcpp/XmlRpc.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/include/xmlrpcpp/XmlRpcClient.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/include/xmlrpcpp/XmlRpcDecl.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/include/xmlrpcpp/XmlRpcDispatch.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/include/xmlrpcpp/XmlRpcException.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/include/xmlrpcpp/XmlRpcServer.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/include/xmlrpcpp/XmlRpcServerConnection.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/include/xmlrpcpp/XmlRpcServerMethod.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/include/xmlrpcpp/XmlRpcSocket.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/include/xmlrpcpp/XmlRpcSource.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/include/xmlrpcpp/XmlRpcUtil.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/include/xmlrpcpp/XmlRpcValue.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/include/xmlrpcpp/base64.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcClient.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcDispatch.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcServer.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcServerConnection.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcServerMethod.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcSocket.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcSource.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcUtil.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcValue.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/FileClient.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/HelloClient.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/HelloServer.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/TestBase64Client.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/TestBase64Server.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/TestValues.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/TestValuesWin32.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/TestXml.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/Validator.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/bool_test.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/port_zero_server.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/HelloTest.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/TestValues.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/TestXml.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/mock_socket.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/mock_socket.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/test_base64.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/test_client.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/test_dispatch.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/test_dispatch_live.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/test_fixtures.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/test_fixtures.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/test_socket.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/test_system_mocks.c
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/test_system_mocks.h
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/test_ulimit.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/test_util.cpp
Examining data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/xmlrpcvalue_base64.cpp

FINAL RESULTS:

data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/network.cpp:158:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(preferred_ip, ip_);
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/network.cpp:160:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(preferred_ip, ip_);
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/network.cpp:163:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(preferred_ip, ip_);
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/test_ns_node_remapping.cpp:36:20:  [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 PRINT(cmd) printf(#cmd"\n"); cmd; printf("\n");
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/test_search_param.cpp:36:20:  [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 PRINT(cmd) printf(#cmd"\n"); cmd; printf("\n");
data/ros-ros-comm-1.15.9+ds1/utilities/roslz4/src/lz4s.c:45:20:  [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.
#define DEBUG(...) fprintf(stderr, __VA_ARGS__)
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcUtil.cpp:87:10:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    std::vsnprintf(buf,sizeof(buf)-1,fmt,va);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcUtil.cpp:100:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  std::vsnprintf(buf,sizeof(buf)-1,fmt,va);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcValue.cpp:618:36:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
          int required_size = std::snprintf(buf, sizeof(buf)-1,
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcValue.cpp:629:18:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
            std::snprintf(required_buf, required_size,
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/init.cpp:433:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  env_ipv6 = getenv("ROS_IPV6");
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/master.cpp:64:24:  [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.
      master_uri_env = getenv("ROS_MASTER_URI");
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/this_node.cpp:105:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  ns_env = getenv("ROS_NAMESPACE");
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport/transport.cpp:64:18:  [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.
    ros_ip_env = getenv("ROS_IP");
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport/transport.cpp:65:24:  [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.
    ros_hostname_env = getenv("ROS_HOSTNAME");
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/check_master.cpp:85:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    std::cout << getenv("ROS_MASTER_URI") << std::endl;
data/ros-ros-comm-1.15.9+ds1/tools/rosout/rosout.cpp:86:44:  [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* disable_file_logging_env = getenv("ROSOUT_DISABLE_FILE_LOGGING");
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/xmlrpcvalue_base64.cpp:63:28:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  TEST(xmlrpcvalue_base64, random)
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/message.h:80:47:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define SROS_SERIALIZE_PRIMITIVE(ptr, data) { memcpy(ptr, &data, sizeof(data)); ptr += sizeof(data); }
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/message.h:81:76:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define SROS_SERIALIZE_BUFFER(ptr, data, data_size) { if (data_size > 0) { memcpy(ptr, data, data_size); ptr += data_size; } }
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/message.h:83:78:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define SROS_DESERIALIZE_BUFFER(ptr, data, data_size) { if (data_size > 0) { memcpy(data, ptr, data_size); ptr += data_size; } }
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/connection.cpp:371: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(full_msg.get() + 4, buffer.get(), len);
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/file_log.cpp:106:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char pid_str[100];
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/io.cpp:275:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char data[64] = {0};
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/network.cpp:71:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  port = atoi(port_str.c_str());
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/network.cpp:112:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char host[1024];
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/network.cpp:134:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char preferred_ip[200] = {0};
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/network.cpp:137:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ip_[200];
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/service_manager.cpp:148:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char uri_buf[1024];
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/service_manager.cpp:198:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char uri_buf[1024];
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/subscription.cpp:552:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer.get(), &header_bytes[0], header_bytes.size());
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/this_node.cpp:167:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[200];
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/topic_manager.cpp:633:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(buffer.get(), &header_bytes[0], header_bytes.size());
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport/transport.cpp:74:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char our_hostname[256] = {0};
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport/transport.cpp:95:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char addr[NI_MAXHOST] = {0};
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport/transport_tcp.cpp:269: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(address->sin6_addr.s6_addr, in6a.s6_addr, sizeof(in6a.s6_addr));
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport/transport_tcp.cpp:287:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char namebuf[128] = {};
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport/transport_tcp.cpp:295: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(address, it->ai_addr, it->ai_addrlen);
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport/transport_tcp.cpp:308: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(address, it->ai_addr, it->ai_addrlen);
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport/transport_tcp.cpp:751:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char err[60];
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport/transport_tcp.cpp:780:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char namebuf[128] = {};
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport/transport_udp.cpp:187: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(&sin, it->ai_addr, it->ai_addrlen);
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport/transport_udp.cpp:384:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(buffer + bytes_read, reorder_start_, copy_bytes);
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport/transport_udp.cpp:456:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(buffer + bytes_read, data_start_, copy_bytes);
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport/transport_udp.cpp:482:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(reorder_buffer_, data_buffer_, reorder_bytes_);
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport/transport_udp.cpp:718:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char namebuf[128] = {};
data/ros-ros-comm-1.15.9+ds1/test/test_rosbag_storage/src/bag_player.cpp:71:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    bag.open(bag_filename, rosbag::bagmode::Write);
data/ros-ros-comm-1.15.9+ds1/test/test_rosbag_storage/src/create_and_iterate_bag.cpp:26: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).
  bag.open(filename, rosbag::bagmode::Write);
data/ros-ros-comm-1.15.9+ds1/test/test_rosbag_storage/src/create_and_iterate_bag.cpp:37: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).
  bag.open(filename, rosbag::bagmode::Write);
data/ros-ros-comm-1.15.9+ds1/test/test_rosbag_storage/src/create_and_iterate_bag.cpp:55: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).
  bag.open(bag_filename, rosbag::bagmode::Read);
data/ros-ros-comm-1.15.9+ds1/test/test_rosbag_storage/src/create_and_iterate_bag.cpp: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).
  bag.open(bag_filename, rosbag::bagmode::Read);
data/ros-ros-comm-1.15.9+ds1/test/test_rosbag_storage/src/create_and_iterate_bag.cpp:87: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).
  bag.open(bag_filename, rosbag::bagmode::Read);
data/ros-ros-comm-1.15.9+ds1/test/test_rosbag_storage/src/create_and_iterate_bag.cpp:129: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).
  bag.open(filename);
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/loads_of_publishers.cpp:92:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  g_pub_count = atoi(argv[1]);
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/multiple_init_fini.cpp:58:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    try_count = atoi(g_argv[1]);
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/param_locale_avoidance_test.cpp:42:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char argv[1][255] = { "string" };
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/pub_sub.cpp:71: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).
  g_array_size = atoi(argv[1]);
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/publish_empty.cpp:67:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  g_msg_count = atoi(argv[1]);
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/publish_n_fast.cpp:72: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).
  int msg_count = atoi(argv[1]);
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/publish_n_fast.cpp:73:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  int min_size = atoi(argv[2]);
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/publish_n_fast.cpp:74:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  int max_size = atoi(argv[3]);
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/publish_onsub.cpp:67:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  g_msg_count = atoi(argv[1]);
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/sub_pub.cpp:145:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  g_msg_count = atoi(argv[1]);
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/subscribe_empty.cpp:82: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).
      msg_count = atoi(g_argv[1]);
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/subscribe_n_fast.cpp:108:23:  [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).
      msgs_expected = atoi(g_argv[2]);
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/subscribe_resubscribe.cpp:86: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).
      msg_count = atoi(g_argv[1]);
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/subscribe_self.cpp:148:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  g_msg_count = atoi(argv[1]);
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/test_header.cpp:54: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, g_header_data1, sizeof(g_header_data1));
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/test_header.cpp:59: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, g_header_data2, sizeof(g_header_data2));
data/ros-ros-comm-1.15.9+ds1/tools/rosbag/examples/write.cpp:36: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).
  bag.open("test.bag", rosbag::bagmode::Write);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag/src/player.cpp:141: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).
            bag->open(filename, bagmode::Read);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag/src/recorder.cpp:400: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).
        bag_.open(write_filename_, bagmode::Write);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag/src/recorder.cpp:596: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).
            bag_.open(write_filename, bagmode::Write);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/bag.h:131: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).
    void open(std::string const& filename, uint32_t mode = bagmode::Read);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/bag.h:398:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, i->second.data(), sizeof(T));
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/bag.h:414:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(stream.advance(data_size), current_buffer_->getData() + index_entry.offset + bytes_read, data_size);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/bag.h:422:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(stream.advance(data_size), record_buffer_.getData(), data_size);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/bag.h:665: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(outgoing_chunk_buffer_.getData() + offset, record_buffer_.getData(), msg_ser_len);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/chunked_file.h:88: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).
    void open(std::string const& filename, std::string const& mode);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/aes_encryptor.cpp:269: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(&header_buffer_with_pad[0], header_buffer.get(), header_len);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bag.cpp:64:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    open(filename, mode);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bag.cpp:103: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).
void Bag::open(string const& filename, uint32_t mode) {
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bag.cpp:242:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char logtypename[100];
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bag.cpp:1014:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf.getData() + offset, &header_len, 4);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bag.cpp:1016:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf.getData() + offset, header_buffer.get(), header_len);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bag.cpp:1024:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf.getData() + offset, &data_len, 4);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bag.cpp:1037: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(&header_len, ptr, 4);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bag.cpp:1048:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&data_size, ptr, 4);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bag_player.cpp:7:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    bag.open(fname, rosbag::bagmode::Read);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/chunked_file.cpp:78:59:  [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 ChunkedFile::openReadWrite(string const& filename) { open(filename, "r+b"); }
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/chunked_file.cpp:79:59:  [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 ChunkedFile::openWrite    (string const& filename) { open(filename, "w+b");  }
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/chunked_file.cpp:80:59:  [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 ChunkedFile::openRead     (string const& filename) { open(filename, "rb");  }
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/chunked_file.cpp:82:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void ChunkedFile::open(string const& filename, string const& mode) {
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/chunked_file.cpp:93:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            file_ = fopen(filename.c_str(), "r");
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/chunked_file.cpp:100:25:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                file_ = fopen(filename.c_str(), "w+b");
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/chunked_file.cpp:110:25:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                file_ = fopen(filename.c_str(), "r+b");
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/chunked_file.cpp:118:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            file_ = fopen(filename.c_str(), mode.c_str());
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/chunked_file.cpp:210:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[1024];
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/uncompressed_stream.cpp:70:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(ptr, unused, nUnused);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/uncompressed_stream.cpp:76:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(ptr, unused, nUnused);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/uncompressed_stream.cpp:92:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(ptr, unused, size);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/uncompressed_stream.cpp:111:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dest, source, source_len);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/test/test_aes_encryptor.cpp:147:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    bag.open(bag_file_name, rosbag::bagmode::Read);
data/ros-ros-comm-1.15.9+ds1/tools/rosout/rosout.cpp:99:17:  [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).
      handle_ = fopen(log_file_name_.c_str(), "w");
data/ros-ros-comm-1.15.9+ds1/tools/rosout/rosout.cpp:246:19:  [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).
        handle_ = fopen(log_file_name_.c_str(), "w");
data/ros-ros-comm-1.15.9+ds1/tools/topic_tools/include/topic_tools/shape_shifter.h:219: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(stream.advance(msgBuf.size()), msgBuf.data(), msgBuf.size());
data/ros-ros-comm-1.15.9+ds1/tools/topic_tools/include/topic_tools/shape_shifter.h:230: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(msgBuf.data(), stream.getData(), stream.getLength());
data/ros-ros-comm-1.15.9+ds1/tools/topic_tools/src/drop.cpp:77:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  if ((argc != 4 && argc != 5) || atoi(argv[2]) < 0 || atoi(argv[3]) < 1)
data/ros-ros-comm-1.15.9+ds1/tools/topic_tools/src/drop.cpp:77:56:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  if ((argc != 4 && argc != 5) || atoi(argv[2]) < 0 || atoi(argv[3]) < 1)
data/ros-ros-comm-1.15.9+ds1/tools/topic_tools/src/drop.cpp:88:9:  [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).
  g_x = atoi(argv[2]);
data/ros-ros-comm-1.15.9+ds1/tools/topic_tools/src/drop.cpp:89:9:  [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).
  g_y = atoi(argv[3]);
data/ros-ros-comm-1.15.9+ds1/tools/topic_tools/src/throttle.cpp:240:13:  [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).
    g_bps = atoi(argv[3]);
data/ros-ros-comm-1.15.9+ds1/utilities/roslz4/src/lz4s.c:108:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char header[10];
data/ros-ros-comm-1.15.9+ds1/utilities/roslz4/src/lz4s.c:131:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dest + *offset, str->input_next, to_copy);
data/ros-ros-comm-1.15.9+ds1/utilities/roslz4/src/lz4s.c:209:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(str->output_next + 4, state->buffer, uncomp_size);
data/ros-ros-comm-1.15.9+ds1/utilities/roslz4/src/lz4s.c:238: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(state->buffer + state->buffer_offset, str->input_next, to_copy);
data/ros-ros-comm-1.15.9+ds1/utilities/roslz4/src/lz4s.c:385: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(state->header + str->total_in, str->input_next, to_copy);
data/ros-ros-comm-1.15.9+ds1/utilities/roslz4/src/lz4s.c:481: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(state->buffer + state->buffer_offset, str->input_next, to_copy);
data/ros-ros-comm-1.15.9+ds1/utilities/roslz4/src/lz4s.c:498:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(str->output_next, state->buffer, state->block_size);
data/ros-ros-comm-1.15.9+ds1/utilities/roslz4/src/xxhash.c:92:82:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
FORCE_INLINE void* XXH_memcpy(void* dest, const void* src, size_t size) { return memcpy(dest,src,size); }
data/ros-ros-comm-1.15.9+ds1/utilities/roslz4/src/xxhash.c:306:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char memory[16];
data/ros-ros-comm-1.15.9+ds1/utilities/roslz4/test/roslz4_test.cpp:53:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char input[1024];
data/ros-ros-comm-1.15.9+ds1/utilities/roslz4/test/roslz4_test.cpp:54:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char output[1048];
data/ros-ros-comm-1.15.9+ds1/utilities/roslz4/test/roslz4_test.cpp:55:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char other[1024];
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcClient.cpp:336:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[40];
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcServerConnection.cpp:371:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffLen[40];
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcServerConnection.cpp:375: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(buffLen,"%d\r\n\r\n", (int)body.size());
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcSocket.cpp:234: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(address, it->ai_addr, it->ai_addrlen);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcSocket.cpp:247: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(address, it->ai_addr, it->ai_addrlen);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcSocket.cpp:251:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[128];
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcSocket.cpp:296:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char readBuf[READ_SIZE];
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcSocket.cpp:390:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char err[60];
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcUtil.cpp:85:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcUtil.cpp:99:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1024];
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcValue.cpp:333:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcValue.cpp:443:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[20];
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcValue.cpp:617:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char buf[128]; // Should be long enough
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcValue.cpp:628:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char required_buf[required_size+1];
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcValue.cpp:640:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char buf[20];
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/FileClient.cpp:22: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).
  int port = atoi(argv[2]);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/HelloClient.cpp:14: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).
  int port = atoi(argv[2]);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/HelloServer.cpp:67: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).
  int port = atoi(argv[1]);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/TestBase64Client.cpp:21: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).
  int port = atoi(argv[2]);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/TestBase64Server.cpp:31: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).
      infile.open("../pngnow.png", std::ios::binary);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/TestBase64Server.cpp:56: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).
  int port = atoi(argv[1]);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/TestValues.cpp:178:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[40];
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/TestValues.cpp:179:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf,"%d", ii);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/TestValues.cpp:186:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[40];
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/TestValues.cpp:187:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf,"%d", ii);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/TestValues.cpp:192:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char bufj[40];
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/TestValues.cpp:193:11:  [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(bufj,"%d", jj);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/TestValues.cpp:199:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[40];
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/TestValues.cpp:200:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf,"%d", ii);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/TestValuesWin32.cpp:181:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[40];
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/TestValuesWin32.cpp:182:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf,"%d", ii);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/TestValuesWin32.cpp:189:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[40];
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/TestValuesWin32.cpp:190:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf,"%d", ii);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/TestValuesWin32.cpp:195:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char bufj[40];
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/TestValuesWin32.cpp:196:11:  [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(bufj,"%d", jj);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/TestValuesWin32.cpp:202:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[40];
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/TestValuesWin32.cpp:203:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf,"%d", ii);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/Validator.cpp:195: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).
  int port = atoi(argv[1]);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/TestValues.cpp:437:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[40];
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/TestValues.cpp:438:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf, "%d", ii);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/TestValues.cpp:445:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[40];
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/TestValues.cpp:446:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf, "%d", ii);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/TestValues.cpp:451:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char bufj[40];
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/TestValues.cpp:452:11:  [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(bufj, "%d", jj);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/TestValues.cpp:458:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[40];
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/TestValues.cpp:459:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf, "%d", ii);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/mock_socket.cpp:51:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char err[60];
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/test_socket.cpp:342:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, r.buf, cnt);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/test_socket.cpp:725: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(addr, getsockname_addr, len);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/test_socket.cpp:833: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(addr, accept_addr, len);
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/connection.h:128:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  void read(uint32_t size, const ReadFinishedFunc& finished_callback);
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/io.h:211:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		return read(signal, buffer, nbyte);
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/transport/transport.h:67:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  virtual int32_t read(uint8_t* buffer, uint32_t size) = 0;
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/transport/transport_tcp.h:109:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  virtual int32_t read(uint8_t* buffer, uint32_t size);
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/include/ros/transport/transport_udp.h:106:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  virtual int32_t read(uint8_t* buffer, uint32_t size);
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/connection.cpp:83:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(4, boost::bind(&Connection::onHeaderLengthRead, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, boost::placeholders::_4));
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/connection.cpp:124:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      int32_t bytes_read = transport_->read(read_buffer_.get() + read_filled_, to_read);
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/connection.cpp:264:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void Connection::read(uint32_t size, const ReadFinishedFunc& callback)
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/connection.cpp:406:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  read(len, boost::bind(&Connection::onHeaderRead, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, boost::placeholders::_4));
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/connection.cpp:461:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(4, boost::bind(&Connection::onHeaderLengthRead, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, boost::placeholders::_4));
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/network.cpp:119:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  else if(strlen(host) && strcmp("localhost", host))
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/service_client_link.cpp:177:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  connection_->read(4, boost::bind(&ServiceClientLink::onRequestLength, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, boost::placeholders::_4));
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/service_client_link.cpp:201:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  connection_->read(len, boost::bind(&ServiceClientLink::onRequest, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, boost::placeholders::_4));
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/service_client_link.cpp:229:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    connection_->read(4, boost::bind(&ServiceClientLink::onRequestLength, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, boost::placeholders::_4));
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/service_server_link.cpp:184:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  connection_->read(5, boost::bind(&ServiceServerLink::onResponseOkAndLength, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, boost::placeholders::_4));
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/service_server_link.cpp:221:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    connection_->read(len, boost::bind(&ServiceServerLink::onResponse, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, boost::placeholders::_4));
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport/transport_tcp.cpp:299:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(namebuf, inet_ntoa(address->sin_addr), sizeof(namebuf)-1);
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport/transport_tcp.cpp:485:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int32_t TransportTCP::read(uint8_t* buffer, uint32_t size)
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport/transport_tcp.cpp:787:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(namebuf, inet_ntoa(sin->sin_addr), sizeof(namebuf)-1);
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport/transport_udp.cpp:351:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int32_t TransportUDP::read(uint8_t* buffer, uint32_t size)
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport/transport_udp.cpp:720:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(namebuf, inet_ntoa(sin->sin_addr), sizeof(namebuf)-1);
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport_publisher_link.cpp:108:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    connection_->read(4, boost::bind(&TransportPublisherLink::onMessageLength, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, boost::placeholders::_4));
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport_publisher_link.cpp:148:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  connection_->read(4, boost::bind(&TransportPublisherLink::onMessageLength, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, boost::placeholders::_4));
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport_publisher_link.cpp:166:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      connection_->read(4, boost::bind(&TransportPublisherLink::onMessageLength, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, boost::placeholders::_4));
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport_publisher_link.cpp:185:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  connection_->read(len, boost::bind(&TransportPublisherLink::onMessage, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, boost::placeholders::_4));
data/ros-ros-comm-1.15.9+ds1/clients/roscpp/src/libros/transport_publisher_link.cpp:202:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    connection_->read(4, boost::bind(&TransportPublisherLink::onMessageLength, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, boost::placeholders::_4));
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/intraprocess_subscriptions.cpp:99:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  inline static void read(Stream&, Msg& v)
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/intraprocess_subscriptions.cpp:166:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  inline static void read(Stream&, Msg2& v)
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/params.cpp:302:20:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  ASSERT_TRUE(std::equal(vec_s.begin(), vec_s.end(), vec_s2.begin()));
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/params.cpp:331:20:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  ASSERT_TRUE(std::equal(vec_d.begin(), vec_d.end(), vec_d2.begin()));
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/params.cpp:357:20:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  ASSERT_TRUE(std::equal(vec_f.begin(), vec_f.end(), vec_f2.begin()));
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/params.cpp:383:20:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  ASSERT_TRUE(std::equal(vec_i.begin(), vec_i.end(), vec_i2.begin()));
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/params.cpp:409:20:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  ASSERT_TRUE(std::equal(vec_b.begin(), vec_b.end(), vec_b2.begin()));
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/params.cpp:437:20:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  ASSERT_TRUE(std::equal(map_s.begin(), map_s.end(), map_s2.begin()));
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/params.cpp:459:20:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  ASSERT_TRUE(std::equal(map_d.begin(), map_d.end(), map_d2.begin()));
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/params.cpp:481:20:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  ASSERT_TRUE(std::equal(map_f.begin(), map_f.end(), map_f2.begin()));
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/params.cpp:503:20:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  ASSERT_TRUE(std::equal(map_i.begin(), map_i.end(), map_i2.begin()));
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/params.cpp:528:20:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  ASSERT_TRUE(std::equal(map_b.begin(), map_b.end(), map_b2.begin()));
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/src/service_adv_zombie.cpp:61: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(100*1000);
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/test_header.cpp:84:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ASSERT_EQ(len, 4*3 + 3 + strlen("haha") + strlen("hoho") + strlen("fasdf") + strlen("aaaaaaaaaaaaaaa") + strlen("02490\n254") + strlen("idsjowiejf\nioajfoiwje"));
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/test_header.cpp:84:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ASSERT_EQ(len, 4*3 + 3 + strlen("haha") + strlen("hoho") + strlen("fasdf") + strlen("aaaaaaaaaaaaaaa") + strlen("02490\n254") + strlen("idsjowiejf\nioajfoiwje"));
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/test_header.cpp:84:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ASSERT_EQ(len, 4*3 + 3 + strlen("haha") + strlen("hoho") + strlen("fasdf") + strlen("aaaaaaaaaaaaaaa") + strlen("02490\n254") + strlen("idsjowiejf\nioajfoiwje"));
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/test_header.cpp:84:80:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ASSERT_EQ(len, 4*3 + 3 + strlen("haha") + strlen("hoho") + strlen("fasdf") + strlen("aaaaaaaaaaaaaaa") + strlen("02490\n254") + strlen("idsjowiejf\nioajfoiwje"));
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/test_header.cpp:84:108:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ASSERT_EQ(len, 4*3 + 3 + strlen("haha") + strlen("hoho") + strlen("fasdf") + strlen("aaaaaaaaaaaaaaa") + strlen("02490\n254") + strlen("idsjowiejf\nioajfoiwje"));
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/test_header.cpp:84:131:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ASSERT_EQ(len, 4*3 + 3 + strlen("haha") + strlen("hoho") + strlen("fasdf") + strlen("aaaaaaaaaaaaaaa") + strlen("02490\n254") + strlen("idsjowiejf\nioajfoiwje"));
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/test_poll_set.cpp:232:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      while(read(socket_, &b, 1) > 0)
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/test_poll_set.cpp:261:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
TEST_F(Poller, read)
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/test_transport_tcp.cpp:103:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int32_t read = transports_[2]->read(buf, msg.length());
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/test_transport_tcp.cpp:104:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ASSERT_EQ(read, (int32_t)msg.length());
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/test_transport_tcp.cpp:116:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int32_t read = transports_[2]->read(buf, 1);
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/test_transport_tcp.cpp:117:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ASSERT_EQ(read, 1);
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/test_transport_tcp.cpp:125:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    *read_out += transport->read(buf + *read_out, size - *read_out);
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/test_transport_tcp.cpp:172:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int32_t read = transports_[1]->read(buf, 1);
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/test_transport_tcp.cpp:173:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ASSERT_EQ(read, -1);
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test/test_transport_tcp.cpp:217:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (transport->read(&b, 1) > 0)
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test_serialization/src/pre_deserialize.cpp:72:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  inline static void read(Stream&, IncomingMsg&)
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test_serialization/src/pre_deserialize.cpp:91:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  inline static void read(Stream&, OutgoingMsg&)
data/ros-ros-comm-1.15.9+ds1/test/test_roscpp/test_serialization/src/serialization.cpp:216:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  inline static void read(Stream& stream, FixedSizeSimple& v)
data/ros-ros-comm-1.15.9+ds1/tools/rosbag/src/player.cpp:766:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return getc(stdin);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/bag.h:311:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void read(char* b, std::streamsize n) const;
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/chunked_file.h:77:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void        read(void* ptr, size_t size);                           //!< read size bytes from the file into ptr
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/stream.h:78:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual void read (void* ptr, size_t size) = 0;
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/stream.h:131:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void read(void* ptr, size_t size);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/stream.h:151:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void read(void* ptr, size_t size);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/stream.h:180:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void read(void* ptr, size_t size);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/include/rosbag/view.h:80:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        bool equal(iterator const& other) const;
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/aes_encryptor.cpp:200:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    file.read((char*) &compressed_chunk[0], chunk_size);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/aes_encryptor.cpp:229:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    file.read((char*) &iv[0], AES_BLOCK_SIZE);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/aes_encryptor.cpp:231:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    file.read((char*) &encrypted_chunk[0], chunk_header.compressed_size - AES_BLOCK_SIZE);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/aes_encryptor.cpp:288:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    file.read((char*) &encrypted_header_len, 4);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/aes_encryptor.cpp:297:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    file.read((char*) &iv[0], AES_BLOCK_SIZE);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/aes_encryptor.cpp:300:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    file.read((char*) &encrypted_header[0], encrypted_header_len);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bag.cpp:247:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if (sscanf(version_line.c_str(), "#ROS%99s V%d.%d", logtypename, &version_major, &version_minor) != 3)
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bag.cpp:591:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read((char*) &sec,                   4);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bag.cpp:592:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read((char*) &nsec,                  4);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bag.cpp:593:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read((char*) &index_entry.chunk_pos, 8);   //<! store position of the message in the chunk_pos field as it's 64 bits
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bag.cpp:640:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read((char*) &sec,                4);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bag.cpp:641:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read((char*) &nsec,               4);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bag.cpp:642:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read((char*) &index_entry.offset, 4);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bag.cpp:826:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    file_.read((char*) record_buffer_.getData(), data_size);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bag.cpp:974:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read((char*) &connection_id,    4);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bag.cpp:975:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read((char*) &connection_count, 4);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bag.cpp:1077:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read((char*) &header_len, 4);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bag.cpp:1081:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read((char*) header_buffer_.getData(), header_len);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bag.cpp:1093:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read((char*) &data_size, 4);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bag.cpp:1145:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void Bag::read(char* b, std::streamsize n) const  { file_.read(b, n);             }
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bag.cpp:1145:59:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void Bag::read(char* b, std::streamsize n) const  { file_.read(b, n);             }
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/bz2_stream.cpp:117:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void BZ2Stream::read(void* ptr, size_t size) {
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/chunked_file.cpp:201:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void ChunkedFile::read(void* ptr, size_t size)  { read_stream_->read(ptr, size);      }
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/chunked_file.cpp:201:65:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void ChunkedFile::read(void* ptr, size_t size)  { read_stream_->read(ptr, size);      }
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/lz4_stream.cpp:156:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void LZ4Stream::read(void* ptr, size_t size) {
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/no_encryptor.cpp:49:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    file.read((char*) decrypted_chunk.getData(), chunk_header.compressed_size);
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/uncompressed_stream.cpp:62:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void UncompressedStream::read(void* ptr, size_t size) {
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/src/view.cpp:101:22:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
bool View::iterator::equal(View::iterator const& other) const {
data/ros-ros-comm-1.15.9+ds1/tools/rosbag_storage/test/test_aes_encryptor.cpp:99:85:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    gpgme_error_t err = gpgme_data_new_from_mem(&key_data, GPG_PRIVATE_SUBKEY, std::strlen(GPG_PRIVATE_SUBKEY), 1);
data/ros-ros-comm-1.15.9+ds1/tools/topic_tools/include/topic_tools/shape_shifter.h:92:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  void read(Stream& stream);
data/ros-ros-comm-1.15.9+ds1/tools/topic_tools/include/topic_tools/shape_shifter.h:154:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  inline static void read(Stream& stream, topic_tools::ShapeShifter& m)
data/ros-ros-comm-1.15.9+ds1/tools/topic_tools/include/topic_tools/shape_shifter.h:156:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m.read(stream);
data/ros-ros-comm-1.15.9+ds1/tools/topic_tools/include/topic_tools/shape_shifter.h:223:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void ShapeShifter::read(Stream& stream)
data/ros-ros-comm-1.15.9+ds1/utilities/roslz4/src/lz4s.c:348:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read < 0) { return read; }
data/ros-ros-comm-1.15.9+ds1/utilities/roslz4/src/lz4s.c:348:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read < 0) { return read; }
data/ros-ros-comm-1.15.9+ds1/utilities/roslz4/src/lz4s.c:355:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  } while (read > 0 || wrote > 0);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcSocket.cpp:305:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int n = read(fd, readBuf, READ_SIZE-1);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcUtil.cpp:116: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).
  istart += strlen(tag);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcUtil.cpp:137:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  *offset = int(istart + strlen(tag));
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/src/XmlRpcUtil.cpp:156:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int len = int(strlen(tag));
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/standalone-tests/FileClient.cpp:40:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  infile.read(b, nb);
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/test_socket.cpp:138:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  EXPECT_EQ(0, read(0, 0, 0));
data/ros-ros-comm-1.15.9+ds1/utilities/xmlrpcpp/test/test_system_mocks.h:72:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
             read,

ANALYSIS SUMMARY:

Hits = 283
Lines analyzed = 70595 in approximately 1.94 seconds (36330 lines/second)
Physical Source Lines of Code (SLOC) = 43632
Hits@level = [0]  54 [1] 109 [2] 156 [3]   8 [4]  10 [5]   0
Hits@level+ = [0+] 337 [1+] 283 [2+] 174 [3+]  18 [4+]  10 [5+]   0
Hits/KSLOC@level+ = [0+] 7.72369 [1+] 6.48607 [2+] 3.9879 [3+] 0.412541 [4+] 0.22919 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.