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/kapptemplate-20.08.2/tests/macrosubstitutiontest.h
Examining data/kapptemplate-20.08.2/tests/namevalidatortest.h
Examining data/kapptemplate-20.08.2/tests/namevalidatortest.cpp
Examining data/kapptemplate-20.08.2/tests/macrosubstitutiontest.cpp
Examining data/kapptemplate-20.08.2/src/templates/C++/kde-frameworks5-simple/src/%{APPNAMELC}window.cpp
Examining data/kapptemplate-20.08.2/src/templates/C++/kde-frameworks5-simple/src/main.cpp
Examining data/kapptemplate-20.08.2/src/templates/C++/kde-frameworks5-simple/src/%{APPNAMELC}window.h
Examining data/kapptemplate-20.08.2/src/templates/C++/kde-frameworks5/src/%{APPNAMELC}window.cpp
Examining data/kapptemplate-20.08.2/src/templates/C++/kde-frameworks5/src/%{APPNAMELC}view.cpp
Examining data/kapptemplate-20.08.2/src/templates/C++/kde-frameworks5/src/main.cpp
Examining data/kapptemplate-20.08.2/src/templates/C++/kde-frameworks5/src/%{APPNAMELC}window.h
Examining data/kapptemplate-20.08.2/src/templates/C++/kde-frameworks5/src/%{APPNAMELC}view.h
Examining data/kapptemplate-20.08.2/src/application/apptemplateitem.cpp
Examining data/kapptemplate-20.08.2/src/application/main.cpp
Examining data/kapptemplate-20.08.2/src/application/apptemplatesmodel.h
Examining data/kapptemplate-20.08.2/src/application/apptemplatesmodel.cpp
Examining data/kapptemplate-20.08.2/src/application/generatepage.h
Examining data/kapptemplate-20.08.2/src/application/kapptemplate.cpp
Examining data/kapptemplate-20.08.2/src/application/logging.h
Examining data/kapptemplate-20.08.2/src/application/kapptemplate.h
Examining data/kapptemplate-20.08.2/src/application/apptemplateitem.h
Examining data/kapptemplate-20.08.2/src/application/choicepage.cpp
Examining data/kapptemplate-20.08.2/src/application/choicepage.h
Examining data/kapptemplate-20.08.2/src/application/generatepage.cpp

FINAL RESULTS:

data/kapptemplate-20.08.2/src/application/apptemplatesmodel.cpp:66:29:  [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 (templateArchive.open(QIODevice::ReadOnly)) {
data/kapptemplate-20.08.2/src/application/choicepage.cpp:115:30:  [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 (templateArchive->open(QIODevice::ReadOnly)) {
data/kapptemplate-20.08.2/src/application/generatepage.cpp:116:30:  [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(file.exists() && file.open(QFile::ReadOnly)) {
data/kapptemplate-20.08.2/src/application/generatepage.cpp:120: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(file.open(QFile::WriteOnly | QIODevice::Truncate)) {
data/kapptemplate-20.08.2/src/application/generatepage.cpp:188: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).
    if (arch->open(QIODevice::ReadOnly)) {

ANALYSIS SUMMARY:

Hits = 5
Lines analyzed = 1760 in approximately 0.09 seconds (19683 lines/second)
Physical Source Lines of Code (SLOC) = 1022
Hits@level = [0]   0 [1]   0 [2]   5 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   5 [1+]   5 [2+]   5 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 4.89237 [1+] 4.89237 [2+] 4.89237 [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.