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/libmmmulti-0.1/src/main.cpp
Examining data/libmmmulti-0.1/src/mmiitree.hpp
Examining data/libmmmulti-0.1/src/mmmultimap.hpp
Examining data/libmmmulti-0.1/src/mmmultiset.hpp

FINAL RESULTS:

data/libmmmulti-0.1/src/mmiitree.hpp:89:22:  [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).
        buffer->fd = open(path, O_RDWR);
data/libmmmulti-0.1/src/mmiitree.hpp:215: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).
        writer.open(filename.c_str(), std::ios::binary | std::ios::trunc);
data/libmmmulti-0.1/src/mmiitree.hpp:240:21:  [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).
        reader_fd = open(filename.c_str(), O_RDWR);
data/libmmmulti-0.1/src/mmiitree.hpp:306: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).
        int fd = open(filename.c_str(), O_RDWR);
data/libmmmulti-0.1/src/mmiitree.hpp:344: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(&v, &reader[i*sizeof(Interval)], sizeof(Interval));
data/libmmmulti-0.1/src/mmmultimap.hpp:54:22:  [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).
        buffer->fd = open(path, O_RDWR);
data/libmmmulti-0.1/src/mmmultimap.hpp:220: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).
        writer.open(filename.c_str(), std::ios::binary | std::ios::trunc);
data/libmmmulti-0.1/src/mmmultimap.hpp:245:21:  [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).
        reader_fd = open(filename.c_str(), O_RDWR);
data/libmmmulti-0.1/src/mmmultimap.hpp:300: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).
        int fd = open(filename.c_str(), O_RDWR);
data/libmmmulti-0.1/src/mmmultimap.hpp:337: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(&e, &reader[i*record_size], sizeof(Entry));
data/libmmmulti-0.1/src/mmmultiset.hpp:47:22:  [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).
        buffer->fd = open(path, O_RDWR);
data/libmmmulti-0.1/src/mmmultiset.hpp:151: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).
        writer.open(filename.c_str(), std::ios::binary | std::ios::trunc);
data/libmmmulti-0.1/src/mmmultiset.hpp:176:21:  [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).
        reader_fd = open(filename.c_str(), O_RDWR);
data/libmmmulti-0.1/src/mmmultiset.hpp:251: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).
        int fd = open(filename.c_str(), O_RDWR);
data/libmmmulti-0.1/src/mmmultiset.hpp:290: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(&v, &reader[i*sizeof(Value)], sizeof(Value));
data/libmmmulti-0.1/src/mmmultimap.hpp:164:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        in.read((char*)magic.c_str(), 9);
data/libmmmulti-0.1/src/mmmultimap.hpp:166:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        in.read((char*) &version, sizeof(version));

ANALYSIS SUMMARY:

Hits = 17
Lines analyzed = 1705 in approximately 0.08 seconds (21058 lines/second)
Physical Source Lines of Code (SLOC) = 1366
Hits@level = [0]   0 [1]   2 [2]  15 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  17 [1+]  17 [2+]  15 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 12.4451 [1+] 12.4451 [2+] 10.981 [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.