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/osmpbf-1.4.0/include/osmpbf/osmpbf.h
Examining data/osmpbf-1.4.0/tools/osmpbf-outline.cpp

FINAL RESULTS:

data/osmpbf-1.4.0/tools/osmpbf-outline.cpp:49:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stdout, format, args);
data/osmpbf-1.4.0/tools/osmpbf-outline.cpp:106:17:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        int c = getopt_long(argc, argv, "c", long_options, 0);
data/osmpbf-1.4.0/tools/osmpbf-outline.cpp:27:1:  [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[OSMPBF::max_uncompressed_blob_size];
data/osmpbf-1.4.0/tools/osmpbf-outline.cpp:30:1:  [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 unpack_buffer[OSMPBF::max_uncompressed_blob_size];
data/osmpbf-1.4.0/tools/osmpbf-outline.cpp:127:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen(argv[optind], "rb");
data/osmpbf-1.4.0/tools/osmpbf-outline.cpp:212: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(unpack_buffer, buffer, sz);

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 451 in approximately 0.04 seconds (11462 lines/second)
Physical Source Lines of Code (SLOC) = 254
Hits@level = [0]   6 [1]   0 [2]   4 [3]   1 [4]   1 [5]   0
Hits@level+ = [0+]  12 [1+]   6 [2+]   6 [3+]   2 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 47.2441 [1+] 23.622 [2+] 23.622 [3+] 7.87402 [4+] 3.93701 [5+]   0
Dot directories skipped = 2 (--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.