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-resource-retriever-1.12.6/include/resource_retriever/retriever.h
Examining data/ros-resource-retriever-1.12.6/src/retriever.cpp
Examining data/ros-resource-retriever-1.12.6/test/test.cpp

FINAL RESULTS:

data/ros-resource-retriever-1.12.6/src/retriever.cpp:93: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(&membuf->v[prev_size], buffer, size * nmemb);
data/ros-resource-retriever-1.12.6/src/retriever.cpp:125:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char error_buffer[CURL_ERROR_SIZE];
data/ros-resource-retriever-1.12.6/src/retriever.cpp:141: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(res.data.get(), &buf.v[0], res.size);
data/ros-resource-retriever-1.12.6/test/test.cpp:65:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* f = fopen(path.c_str(), "w");
data/ros-resource-retriever-1.12.6/src/retriever.cpp:103:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    mod_url.erase(0, strlen("package://"));

ANALYSIS SUMMARY:

Hits = 5
Lines analyzed = 378 in approximately 0.03 seconds (12777 lines/second)
Physical Source Lines of Code (SLOC) = 224
Hits@level = [0]   1 [1]   1 [2]   4 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   6 [1+]   5 [2+]   4 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 26.7857 [1+] 22.3214 [2+] 17.8571 [3+]   0 [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.