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/kde-config-systemd-1.2.1/cmake/modules/c++11-test-std-chrono-none.cpp
Examining data/kde-config-systemd-1.2.1/src/helper/helper.h
Examining data/kde-config-systemd-1.2.1/src/helper/helper.cpp
Examining data/kde-config-systemd-1.2.1/src/fsutil.h
Examining data/kde-config-systemd-1.2.1/src/confparms.h
Examining data/kde-config-systemd-1.2.1/src/sortfilterunitmodel.cpp
Examining data/kde-config-systemd-1.2.1/src/fsutil.cpp
Examining data/kde-config-systemd-1.2.1/src/kcmsystemd.h
Examining data/kde-config-systemd-1.2.1/src/confdelegate.h
Examining data/kde-config-systemd-1.2.1/src/confmodel.h
Examining data/kde-config-systemd-1.2.1/src/confoption.h
Examining data/kde-config-systemd-1.2.1/src/sortfilterunitmodel.h
Examining data/kde-config-systemd-1.2.1/src/unitmodel.h
Examining data/kde-config-systemd-1.2.1/src/confdelegate.cpp
Examining data/kde-config-systemd-1.2.1/src/confmodel.cpp
Examining data/kde-config-systemd-1.2.1/src/confparms.cpp
Examining data/kde-config-systemd-1.2.1/src/unitmodel.cpp
Examining data/kde-config-systemd-1.2.1/src/systemdunit.h
Examining data/kde-config-systemd-1.2.1/src/kcmsystemd.cpp
Examining data/kde-config-systemd-1.2.1/src/confoption.cpp

FINAL RESULTS:

data/kde-config-systemd-1.2.1/src/helper/helper.cpp:34: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 (!file.open(QIODevice::WriteOnly | QIODevice::Text)) {
data/kde-config-systemd-1.2.1/src/helper/helper.cpp:55: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).
  if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) {
data/kde-config-systemd-1.2.1/src/kcmsystemd.cpp:266:12:  [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(QIODevice::ReadOnly | QIODevice::Text))
data/kde-config-systemd-1.2.1/src/kcmsystemd.cpp:1340: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).
  if (!f.open(QFile::ReadOnly | QFile::Text)) {

ANALYSIS SUMMARY:

Hits = 4
Lines analyzed = 4436 in approximately 0.20 seconds (22606 lines/second)
Physical Source Lines of Code (SLOC) = 3306
Hits@level = [0]   0 [1]   0 [2]   4 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   4 [1+]   4 [2+]   4 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 1.20992 [1+] 1.20992 [2+] 1.20992 [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.