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/libbinio-1.5+dfsg/contrib/vs2015/libbinio/binio.h
Examining data/libbinio-1.5+dfsg/src/binfile.cpp
Examining data/libbinio-1.5+dfsg/src/binfile.h
Examining data/libbinio-1.5+dfsg/src/binio.cpp
Examining data/libbinio-1.5+dfsg/src/binstr.cpp
Examining data/libbinio-1.5+dfsg/src/binstr.h
Examining data/libbinio-1.5+dfsg/src/binwrap.cpp
Examining data/libbinio-1.5+dfsg/src/binwrap.h

FINAL RESULTS:

data/libbinio-1.5+dfsg/src/binfile.cpp:83:3:  [2] (misc) open:
  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).
  open(filename, mode);
data/libbinio-1.5+dfsg/src/binfile.cpp:89:3:  [2] (misc) open:
  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).
  open(filename, mode);
data/libbinio-1.5+dfsg/src/binfile.cpp:97:19:  [2] (misc) open:
  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).
void binifstream::open(const char *filename, const Mode mode)
data/libbinio-1.5+dfsg/src/binfile.cpp:99:7:  [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).
  f = fopen(filename, "rb");
data/libbinio-1.5+dfsg/src/binfile.cpp:110:19:  [2] (misc) open:
  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).
void binifstream::open(const std::string &filename, const Mode mode)
data/libbinio-1.5+dfsg/src/binfile.cpp:112:3:  [2] (misc) open:
  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).
  open(filename.c_str(), mode);
data/libbinio-1.5+dfsg/src/binfile.cpp:138:3:  [2] (misc) open:
  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).
  open(filename, mode);
data/libbinio-1.5+dfsg/src/binfile.cpp:144:3:  [2] (misc) open:
  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).
  open(filename, mode);
data/libbinio-1.5+dfsg/src/binfile.cpp:152:19:  [2] (misc) open:
  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).
void binofstream::open(const char *filename, const Mode mode)
data/libbinio-1.5+dfsg/src/binfile.cpp:159:7:  [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).
  f = fopen(filename, modestr);
data/libbinio-1.5+dfsg/src/binfile.cpp:174:19:  [2] (misc) open:
  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).
void binofstream::open(const std::string &filename, const Mode mode)
data/libbinio-1.5+dfsg/src/binfile.cpp:176:3:  [2] (misc) open:
  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).
  open(filename.c_str(), mode);
data/libbinio-1.5+dfsg/src/binfile.cpp:196:3:  [2] (misc) open:
  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).
  open(filename, mode);
data/libbinio-1.5+dfsg/src/binfile.cpp:202:3:  [2] (misc) open:
  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).
  open(filename, mode);
data/libbinio-1.5+dfsg/src/binfile.cpp:210:18:  [2] (misc) open:
  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).
void binfstream::open(const char *filename, const Mode mode)
data/libbinio-1.5+dfsg/src/binfile.cpp:223:7:  [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).
  f = fopen(filename, modestr);
data/libbinio-1.5+dfsg/src/binfile.cpp:243:18:  [2] (misc) open:
  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).
void binfstream::open(const std::string &filename, const Mode mode)
data/libbinio-1.5+dfsg/src/binfile.cpp:245:3:  [2] (misc) open:
  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).
  open(filename.c_str(), mode);
data/libbinio-1.5+dfsg/src/binfile.h:40:16:  [2] (misc) open:
  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).
  virtual void open(const char *filename, const Mode mode) = 0;
data/libbinio-1.5+dfsg/src/binfile.h:42:16:  [2] (misc) open:
  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).
  virtual void open(const std::string &filename, const Mode mode) = 0;
data/libbinio-1.5+dfsg/src/binfile.h:64:16:  [2] (misc) open:
  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).
  virtual void open(const char *filename, const Mode mode = NoCreate);
data/libbinio-1.5+dfsg/src/binfile.h:66:16:  [2] (misc) open:
  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).
  virtual void open(const std::string &filename, const Mode mode = NoCreate);
data/libbinio-1.5+dfsg/src/binfile.h:84:16:  [2] (misc) open:
  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).
  virtual void open(const char *filename, const Mode mode = 0);
data/libbinio-1.5+dfsg/src/binfile.h:86:16:  [2] (misc) open:
  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).
  virtual void open(const std::string &filename, const Mode mode = 0);
data/libbinio-1.5+dfsg/src/binfile.h:104:16:  [2] (misc) open:
  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).
  virtual void open(const char *filename, const Mode mode = 0);
data/libbinio-1.5+dfsg/src/binfile.h:106:16:  [2] (misc) open:
  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).
  virtual void open(const std::string &filename, const Mode mode = 0);
data/libbinio-1.5+dfsg/src/binio.cpp:314: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 buf[STRINGBUFSIZE + 1];
data/libbinio-1.5+dfsg/src/binfile.cpp:118:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int read;
data/libbinio-1.5+dfsg/src/binfile.cpp:121:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read = fgetc(f);
data/libbinio-1.5+dfsg/src/binfile.cpp:123:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return (Byte)read;
data/libbinio-1.5+dfsg/src/binio.cpp:316:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  unsigned long read;
data/libbinio-1.5+dfsg/src/binio.cpp:320:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    tempstr.append(buf, read);
data/libbinio-1.5+dfsg/src/binio.cpp:625:24:  [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).
  if(!amount) amount = strlen(str);

ANALYSIS SUMMARY:

Hits = 33
Lines analyzed = 1578 in approximately 0.11 seconds (14339 lines/second)
Physical Source Lines of Code (SLOC) = 1039
Hits@level = [0]   0 [1]   6 [2]  27 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  33 [1+]  33 [2+]  27 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 31.7613 [1+] 31.7613 [2+] 25.9865 [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.