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-image-common-1.12.0/camera_calibration_parsers/include/camera_calibration_parsers/parse.h Examining data/ros-image-common-1.12.0/camera_calibration_parsers/include/camera_calibration_parsers/parse_ini.h Examining data/ros-image-common-1.12.0/camera_calibration_parsers/include/camera_calibration_parsers/parse_wrapper.h Examining data/ros-image-common-1.12.0/camera_calibration_parsers/include/camera_calibration_parsers/parse_yml.h Examining data/ros-image-common-1.12.0/camera_calibration_parsers/src/convert.cpp Examining data/ros-image-common-1.12.0/camera_calibration_parsers/src/parse.cpp Examining data/ros-image-common-1.12.0/camera_calibration_parsers/src/parse_ini.cpp Examining data/ros-image-common-1.12.0/camera_calibration_parsers/src/parse_wrapper.cpp Examining data/ros-image-common-1.12.0/camera_calibration_parsers/src/parse_yml.cpp Examining data/ros-image-common-1.12.0/camera_info_manager/include/camera_info_manager/camera_info_manager.h Examining data/ros-image-common-1.12.0/camera_info_manager/src/camera_info_manager.cpp Examining data/ros-image-common-1.12.0/camera_info_manager/tests/unit_test.cpp Examining data/ros-image-common-1.12.0/image_transport/include/image_transport/camera_common.h Examining data/ros-image-common-1.12.0/image_transport/include/image_transport/camera_publisher.h Examining data/ros-image-common-1.12.0/image_transport/include/image_transport/camera_subscriber.h Examining data/ros-image-common-1.12.0/image_transport/include/image_transport/exception.h Examining data/ros-image-common-1.12.0/image_transport/include/image_transport/exports.h Examining data/ros-image-common-1.12.0/image_transport/include/image_transport/image_transport.h Examining data/ros-image-common-1.12.0/image_transport/include/image_transport/loader_fwds.h Examining data/ros-image-common-1.12.0/image_transport/include/image_transport/publisher.h Examining data/ros-image-common-1.12.0/image_transport/include/image_transport/publisher_plugin.h Examining data/ros-image-common-1.12.0/image_transport/include/image_transport/raw_publisher.h Examining data/ros-image-common-1.12.0/image_transport/include/image_transport/raw_subscriber.h Examining data/ros-image-common-1.12.0/image_transport/include/image_transport/simple_publisher_plugin.h Examining data/ros-image-common-1.12.0/image_transport/include/image_transport/simple_subscriber_plugin.h Examining data/ros-image-common-1.12.0/image_transport/include/image_transport/single_subscriber_publisher.h Examining data/ros-image-common-1.12.0/image_transport/include/image_transport/subscriber.h Examining data/ros-image-common-1.12.0/image_transport/include/image_transport/subscriber_filter.h Examining data/ros-image-common-1.12.0/image_transport/include/image_transport/subscriber_plugin.h Examining data/ros-image-common-1.12.0/image_transport/include/image_transport/transport_hints.h Examining data/ros-image-common-1.12.0/image_transport/src/camera_common.cpp Examining data/ros-image-common-1.12.0/image_transport/src/camera_publisher.cpp Examining data/ros-image-common-1.12.0/image_transport/src/camera_subscriber.cpp Examining data/ros-image-common-1.12.0/image_transport/src/image_transport.cpp Examining data/ros-image-common-1.12.0/image_transport/src/list_transports.cpp Examining data/ros-image-common-1.12.0/image_transport/src/manifest.cpp Examining data/ros-image-common-1.12.0/image_transport/src/publisher.cpp Examining data/ros-image-common-1.12.0/image_transport/src/raw_publisher.cpp Examining data/ros-image-common-1.12.0/image_transport/src/republish.cpp Examining data/ros-image-common-1.12.0/image_transport/src/single_subscriber_publisher.cpp Examining data/ros-image-common-1.12.0/image_transport/src/subscriber.cpp Examining data/ros-image-common-1.12.0/image_transport/tutorial/include/image_transport_tutorial/resized_publisher.h Examining data/ros-image-common-1.12.0/image_transport/tutorial/include/image_transport_tutorial/resized_subscriber.h Examining data/ros-image-common-1.12.0/image_transport/tutorial/src/manifest.cpp Examining data/ros-image-common-1.12.0/image_transport/tutorial/src/my_publisher.cpp Examining data/ros-image-common-1.12.0/image_transport/tutorial/src/my_subscriber.cpp Examining data/ros-image-common-1.12.0/image_transport/tutorial/src/resized_publisher.cpp Examining data/ros-image-common-1.12.0/image_transport/tutorial/src/resized_subscriber.cpp Examining data/ros-image-common-1.12.0/polled_camera/include/polled_camera/publication_server.h Examining data/ros-image-common-1.12.0/polled_camera/src/poller.cpp Examining data/ros-image-common-1.12.0/polled_camera/src/publication_server.cpp FINAL RESULTS: data/ros-image-common-1.12.0/camera_info_manager/src/camera_info_manager.cpp:526:16: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. rc = system(command.c_str()); data/ros-image-common-1.12.0/camera_info_manager/tests/unit_test.cpp:123:12: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. int rc = system(command.c_str()); data/ros-image-common-1.12.0/camera_info_manager/src/camera_info_manager.cpp:377:31: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((ros_home_env = getenv("ROS_HOME"))) data/ros-image-common-1.12.0/camera_info_manager/src/camera_info_manager.cpp:382:36: [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. else if ((ros_home_env = getenv("HOME"))) data/ros-image-common-1.12.0/camera_info_manager/tests/unit_test.cpp:635:20: [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. char *home_env = getenv("HOME"); data/ros-image-common-1.12.0/image_transport/src/raw_publisher.cpp:118: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(stream.advance(data_size), m.data_, data_size); ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 6603 in approximately 0.23 seconds (28615 lines/second) Physical Source Lines of Code (SLOC) = 3264 Hits@level = [0] 18 [1] 0 [2] 1 [3] 3 [4] 2 [5] 0 Hits@level+ = [0+] 24 [1+] 6 [2+] 6 [3+] 5 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 7.35294 [1+] 1.83824 [2+] 1.83824 [3+] 1.53186 [4+] 0.612745 [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.