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/libkf5grantleetheme-20.08.2/autotest/grantleethemetest.cpp
Examining data/libkf5grantleetheme-20.08.2/autotest/grantleethememanagertest.cpp
Examining data/libkf5grantleetheme-20.08.2/autotest/grantleethemetest.h
Examining data/libkf5grantleetheme-20.08.2/src/grantleetheme_p.h
Examining data/libkf5grantleetheme-20.08.2/src/grantleethemeengine.h
Examining data/libkf5grantleetheme-20.08.2/src/grantleethemeengine.cpp
Examining data/libkf5grantleetheme-20.08.2/src/genericformatter.h
Examining data/libkf5grantleetheme-20.08.2/src/genericformatter.cpp
Examining data/libkf5grantleetheme-20.08.2/src/grantleetheme.cpp
Examining data/libkf5grantleetheme-20.08.2/src/grantleethememanager.h
Examining data/libkf5grantleetheme-20.08.2/src/grantleeki18nlocalizer.h
Examining data/libkf5grantleetheme-20.08.2/src/qtresourcetemplateloader.h
Examining data/libkf5grantleetheme-20.08.2/src/qtresourcetemplateloader.cpp
Examining data/libkf5grantleetheme-20.08.2/src/plugin/icon.cpp
Examining data/libkf5grantleetheme-20.08.2/src/plugin/kdegrantleeplugin.h
Examining data/libkf5grantleetheme-20.08.2/src/plugin/colorscheme.h
Examining data/libkf5grantleetheme-20.08.2/src/plugin/colorscheme.cpp
Examining data/libkf5grantleetheme-20.08.2/src/plugin/color.h
Examining data/libkf5grantleetheme-20.08.2/src/plugin/palette.cpp
Examining data/libkf5grantleetheme-20.08.2/src/plugin/icon.h
Examining data/libkf5grantleetheme-20.08.2/src/plugin/color.cpp
Examining data/libkf5grantleetheme-20.08.2/src/plugin/palette.h
Examining data/libkf5grantleetheme-20.08.2/src/plugin/kdegrantleeplugin.cpp
Examining data/libkf5grantleetheme-20.08.2/src/grantleeki18nlocalizer.cpp
Examining data/libkf5grantleetheme-20.08.2/src/grantleetheme.h
Examining data/libkf5grantleetheme-20.08.2/src/grantleethememanager.cpp

FINAL RESULTS:

data/libkf5grantleetheme-20.08.2/autotest/grantleethemetest.cpp:109: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).
    if (!outFile.open(QIODevice::WriteOnly)) {
data/libkf5grantleetheme-20.08.2/autotest/grantleethemetest.cpp:138: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 (!f.open(QIODevice::ReadOnly)) {
data/libkf5grantleetheme-20.08.2/autotest/grantleethemetest.cpp:144: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 (!f.open(QIODevice::WriteOnly | QIODevice::Truncate)) {
data/libkf5grantleetheme-20.08.2/src/qtresourcetemplateloader.cpp:39:37:  [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(QIODevice::ReadOnly | QIODevice::Text)) {
data/libkf5grantleetheme-20.08.2/src/qtresourcetemplateloader.cpp:60:37:  [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(QIODevice::ReadOnly | QIODevice::Text)) {

ANALYSIS SUMMARY:

Hits = 5
Lines analyzed = 2619 in approximately 0.14 seconds (18288 lines/second)
Physical Source Lines of Code (SLOC) = 1683
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+] 2.97089 [1+] 2.97089 [2+] 2.97089 [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.