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/kmbox-20.08.2/autotests/mboxbenchmark.h
Examining data/kmbox-20.08.2/autotests/mboxtest.cpp
Examining data/kmbox-20.08.2/autotests/mboxtest.h
Examining data/kmbox-20.08.2/autotests/mboxbenchmark.cpp
Examining data/kmbox-20.08.2/autotests/test-entries.h
Examining data/kmbox-20.08.2/src/mboxentry.cpp
Examining data/kmbox-20.08.2/src/mbox_p.h
Examining data/kmbox-20.08.2/src/mboxentry_p.h
Examining data/kmbox-20.08.2/src/mbox_p.cpp
Examining data/kmbox-20.08.2/src/mboxentry.h
Examining data/kmbox-20.08.2/src/mbox.cpp
Examining data/kmbox-20.08.2/src/mbox.h

FINAL RESULTS:

data/kmbox-20.08.2/autotests/mboxbenchmark.cpp:111: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).
        QVERIFY(file.open(QIODevice::ReadOnly));
data/kmbox-20.08.2/autotests/mboxtest.cpp:51:14:  [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).
    mboxfile.open(QIODevice::WriteOnly);
data/kmbox-20.08.2/autotests/mboxtest.cpp:511:10:  [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).
    file.open(QIODevice::WriteOnly | QIODevice::Append);
data/kmbox-20.08.2/src/mbox.cpp:211: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).
        if (d->open()) {
data/kmbox-20.08.2/src/mbox.cpp:280:17:  [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).
        if (!d->open()) {
data/kmbox-20.08.2/src/mbox.cpp:458: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).
        buffer.open(QIODevice::ReadOnly);
data/kmbox-20.08.2/src/mbox.cpp:537: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).
        buffer.open(QIODevice::ReadOnly);
data/kmbox-20.08.2/src/mbox.cpp:571:24:  [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).
        if (!otherFile.open(QIODevice::ReadWrite)) {
data/kmbox-20.08.2/src/mbox_p.cpp:33: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).
bool MBoxPrivate::open()
data/kmbox-20.08.2/src/mbox_p.cpp:41:20:  [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).
    if (!mMboxFile.open(mode)) {     // messages file
data/kmbox-20.08.2/src/mbox_p.cpp:43:24:  [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).
        if (!mMboxFile.open(QIODevice::ReadOnly)) {
data/kmbox-20.08.2/src/mbox_p.h:30:28:  [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).
    Q_REQUIRED_RESULT bool open();
data/kmbox-20.08.2/autotests/mboxbenchmark.cpp:118:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            hash.addData(file.read(blockSize));

ANALYSIS SUMMARY:

Hits = 13
Lines analyzed = 2354 in approximately 0.08 seconds (28247 lines/second)
Physical Source Lines of Code (SLOC) = 1561
Hits@level = [0]   0 [1]   1 [2]  12 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  13 [1+]  13 [2+]  12 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 8.32799 [1+] 8.32799 [2+] 7.68738 [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.