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/ksmtp-20.08.2/autotests/fakeserver.h
Examining data/ksmtp-20.08.2/autotests/smtptest.h
Examining data/ksmtp-20.08.2/autotests/smtptest.cpp
Examining data/ksmtp-20.08.2/autotests/fakeserver.cpp
Examining data/ksmtp-20.08.2/tests/logintest.cpp
Examining data/ksmtp-20.08.2/src/sendjob.cpp
Examining data/ksmtp-20.08.2/src/sessionuiproxy.cpp
Examining data/ksmtp-20.08.2/src/sessionuiproxy.h
Examining data/ksmtp-20.08.2/src/job.cpp
Examining data/ksmtp-20.08.2/src/loginjob.cpp
Examining data/ksmtp-20.08.2/src/session_p.h
Examining data/ksmtp-20.08.2/src/sessionthread_p.h
Examining data/ksmtp-20.08.2/src/sendjob.h
Examining data/ksmtp-20.08.2/src/loginjob.h
Examining data/ksmtp-20.08.2/src/serverresponse_p.h
Examining data/ksmtp-20.08.2/src/job_p.h
Examining data/ksmtp-20.08.2/src/session.h
Examining data/ksmtp-20.08.2/src/sessionthread.cpp
Examining data/ksmtp-20.08.2/src/session.cpp
Examining data/ksmtp-20.08.2/src/job.h

FINAL RESULTS:

data/ksmtp-20.08.2/autotests/fakeserver.cpp:133: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(QFile::ReadOnly);
data/ksmtp-20.08.2/src/session.cpp:207:15:  [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 Session::open()
data/ksmtp-20.08.2/src/session.cpp:217:5:  [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();
data/ksmtp-20.08.2/src/session.h:121: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).
    void open();
data/ksmtp-20.08.2/src/sessionthread.cpp:53:25:  [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 (!m_logFile->open(QIODevice::WriteOnly | QIODevice::Truncate)) {
data/ksmtp-20.08.2/tests/logintest.cpp:129:13:  [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).
    session.open();

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 3057 in approximately 0.35 seconds (8760 lines/second)
Physical Source Lines of Code (SLOC) = 2029
Hits@level = [0]   0 [1]   0 [2]   6 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   6 [1+]   6 [2+]   6 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 2.95712 [1+] 2.95712 [2+] 2.95712 [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.