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/plasma-thunderbolt-5.19.5/autotests/kded/kdedtest.cpp
Examining data/plasma-thunderbolt-5.19.5/autotests/lib/devicetest.cpp
Examining data/plasma-thunderbolt-5.19.5/autotests/lib/managertest.cpp
Examining data/plasma-thunderbolt-5.19.5/autotests/fakeserver/fakedevice.cpp
Examining data/plasma-thunderbolt-5.19.5/autotests/fakeserver/fakemanager.cpp
Examining data/plasma-thunderbolt-5.19.5/autotests/fakeserver/main.cpp
Examining data/plasma-thunderbolt-5.19.5/autotests/fakeserver/fakemanager.h
Examining data/plasma-thunderbolt-5.19.5/autotests/fakeserver/fakeserver.cpp
Examining data/plasma-thunderbolt-5.19.5/autotests/fakeserver/fakedevice.h
Examining data/plasma-thunderbolt-5.19.5/autotests/fakeserver/fakeserver.h
Examining data/plasma-thunderbolt-5.19.5/src/kded/kded_bolt.cpp
Examining data/plasma-thunderbolt-5.19.5/src/kded/main.cpp
Examining data/plasma-thunderbolt-5.19.5/src/kded/kded_bolt.h
Examining data/plasma-thunderbolt-5.19.5/src/lib/dbushelper.h
Examining data/plasma-thunderbolt-5.19.5/src/lib/device.h
Examining data/plasma-thunderbolt-5.19.5/src/lib/dbushelper.cpp
Examining data/plasma-thunderbolt-5.19.5/src/lib/enum.cpp
Examining data/plasma-thunderbolt-5.19.5/src/lib/device.cpp
Examining data/plasma-thunderbolt-5.19.5/src/lib/enum.h
Examining data/plasma-thunderbolt-5.19.5/src/lib/manager.h
Examining data/plasma-thunderbolt-5.19.5/src/lib/devicemodel.h
Examining data/plasma-thunderbolt-5.19.5/src/lib/manager.cpp
Examining data/plasma-thunderbolt-5.19.5/src/lib/devicemodel.cpp
Examining data/plasma-thunderbolt-5.19.5/src/kcm/kcm_bolt.h
Examining data/plasma-thunderbolt-5.19.5/src/kcm/kcm_bolt.cpp

FINAL RESULTS:

data/plasma-thunderbolt-5.19.5/autotests/fakeserver/fakeserver.cpp:43: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).
    if (!jsonFile.open(QIODevice::ReadOnly)) {

ANALYSIS SUMMARY:

Hits = 1
Lines analyzed = 2836 in approximately 0.10 seconds (27596 lines/second)
Physical Source Lines of Code (SLOC) = 1931
Hits@level = [0]   0 [1]   0 [2]   1 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   1 [1+]   1 [2+]   1 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 0.517866 [1+] 0.517866 [2+] 0.517866 [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.