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/sosi2osm-1.0.0/sosi2osm.cpp
Examining data/sosi2osm-1.0.0/sosi2osm.h
Examining data/sosi2osm-1.0.0/tag.cpp
Examining data/sosi2osm-1.0.0/node.cpp
Examining data/sosi2osm-1.0.0/sosi.cpp

FINAL RESULTS:

data/sosi2osm-1.0.0/tag.cpp:41: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 filename_string[256];
data/sosi2osm-1.0.0/tag.cpp:43:27:  [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).
    if(file_exist_check = fopen(filename_string, "r")){
data/sosi2osm-1.0.0/tag.cpp:53:31:  [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).
        if(file_exist_check = fopen(filename_string, "r")){
data/sosi2osm-1.0.0/tag.cpp:63:35:  [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).
            if(file_exist_check = fopen(filename_string, "r")){
data/sosi2osm-1.0.0/tag.cpp:81:27:  [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).
    if(file_exist_check = fopen(filename, "r")) {
data/sosi2osm-1.0.0/tag.cpp:91:31:  [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).
        if(file_exist_check = fopen(filename_string, "r")) {
data/sosi2osm-1.0.0/tag.cpp:101:35:  [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).
            if(file_exist_check = fopen(filename_string, "r")) {
data/sosi2osm-1.0.0/tag.cpp:127: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 buffer[256];
data/sosi2osm-1.0.0/tag.cpp:20:20:  [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).
    size_t inlen = strlen(in)+1;

ANALYSIS SUMMARY:

Hits = 9
Lines analyzed = 542 in approximately 0.04 seconds (13254 lines/second)
Physical Source Lines of Code (SLOC) = 442
Hits@level = [0]  33 [1]   1 [2]   8 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  42 [1+]   9 [2+]   8 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 95.0226 [1+] 20.362 [2+] 18.0995 [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.