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-opencv-apps-2.0.2/include/opencv_apps/nodelet.h
Examining data/ros-opencv-apps-2.0.2/src/nodelet/adding_images_nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/camshift_nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/color_filter_nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/contour_moments_nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/convex_hull_nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/corner_harris_nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/discrete_fourier_transform_nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/edge_detection_nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/face_detection_nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/face_recognition_nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/fback_flow_nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/find_contours_nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/general_contours_nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/goodfeature_track_nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/hough_circles_nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/hough_lines_nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/lk_flow_nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/people_detect_nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/phase_corr_nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/pyramids_nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/segment_objects_nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/simple_compressed_example_nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/simple_example_nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/simple_flow_nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/smoothing_nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/threshold_nodelet.cpp
Examining data/ros-opencv-apps-2.0.2/src/nodelet/watershed_segmentation_nodelet.cpp

FINAL RESULTS:

data/ros-opencv-apps-2.0.2/src/nodelet/face_recognition_nodelet.cpp:110:15:  [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.
    homedir = getenv("HOME");
data/ros-opencv-apps-2.0.2/src/nodelet/hough_lines_nodelet.cpp:175:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char thresh_label[50];
data/ros-opencv-apps-2.0.2/src/nodelet/hough_lines_nodelet.cpp:176:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(thresh_label, "Thres: %d + input", min_threshold_);
data/ros-opencv-apps-2.0.2/src/nodelet/simple_compressed_example_nodelet.cpp:126: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((char*)(&ros_image.data[0]), image.data, size);
data/ros-opencv-apps-2.0.2/src/nodelet/simple_compressed_example_nodelet.cpp:135:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(ros_data_ptr, cv_data_ptr, ros_image.step);

ANALYSIS SUMMARY:

Hits = 5
Lines analyzed = 8794 in approximately 0.29 seconds (30542 lines/second)
Physical Source Lines of Code (SLOC) = 6162
Hits@level = [0]   0 [1]   0 [2]   4 [3]   1 [4]   0 [5]   0
Hits@level+ = [0+]   5 [1+]   5 [2+]   5 [3+]   1 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 0.811425 [1+] 0.811425 [2+] 0.811425 [3+] 0.162285 [4+]   0 [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.