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/milou-5.19.5/lib/previewplugin.cpp
Examining data/milou-5.19.5/lib/mousehelper.h
Examining data/milou-5.19.5/lib/resultsmodel.cpp
Examining data/milou-5.19.5/lib/qml/qmlplugins.h
Examining data/milou-5.19.5/lib/qml/qmlplugins.cpp
Examining data/milou-5.19.5/lib/previews/bookmarkplugin.h
Examining data/milou-5.19.5/lib/previews/okularplugin.cpp
Examining data/milou-5.19.5/lib/previews/emailplugin.h
Examining data/milou-5.19.5/lib/previews/fileplugin.h
Examining data/milou-5.19.5/lib/previews/emailplugin.cpp
Examining data/milou-5.19.5/lib/previews/textplugin.h
Examining data/milou-5.19.5/lib/previews/applicationplugin.h
Examining data/milou-5.19.5/lib/previews/fileplugin.cpp
Examining data/milou-5.19.5/lib/previews/imageplugin.cpp
Examining data/milou-5.19.5/lib/previews/audioplugin.cpp
Examining data/milou-5.19.5/lib/previews/videos/videoplugin.h
Examining data/milou-5.19.5/lib/previews/videos/videoplugin.cpp
Examining data/milou-5.19.5/lib/previews/audioplugin.h
Examining data/milou-5.19.5/lib/previews/okularplugin.h
Examining data/milou-5.19.5/lib/previews/bookmarkplugin.cpp
Examining data/milou-5.19.5/lib/previews/applicationplugin.cpp
Examining data/milou-5.19.5/lib/previews/textplugin.cpp
Examining data/milou-5.19.5/lib/previews/imageplugin.h
Examining data/milou-5.19.5/lib/previewplugin.h
Examining data/milou-5.19.5/lib/mousehelper.cpp
Examining data/milou-5.19.5/lib/sourcesmodel.h
Examining data/milou-5.19.5/lib/sourcesmodel.cpp
Examining data/milou-5.19.5/lib/preview.h
Examining data/milou-5.19.5/lib/draghelper.h
Examining data/milou-5.19.5/lib/runnerresultsmodel.h
Examining data/milou-5.19.5/lib/runnerresultsmodel.cpp
Examining data/milou-5.19.5/lib/preview.cpp
Examining data/milou-5.19.5/lib/resultsmodel.h
Examining data/milou-5.19.5/lib/draghelper.cpp
Examining data/milou-5.19.5/lib/test/modeltest.h
Examining data/milou-5.19.5/lib/test/widgettest.cpp
Examining data/milou-5.19.5/lib/test/previewtest.cpp
Examining data/milou-5.19.5/lib/test/modeltest.cpp
Examining data/milou-5.19.5/lib/test/test.cpp
Examining data/milou-5.19.5/plasmoid/configwidget.h
Examining data/milou-5.19.5/plasmoid/configwidget.cpp
Examining data/milou-5.19.5/plasmoid/applet.cpp
Examining data/milou-5.19.5/plasmoid/applet.h

FINAL RESULTS:

data/milou-5.19.5/lib/previews/textplugin.cpp:40: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::ReadOnly)) {

ANALYSIS SUMMARY:

Hits = 1
Lines analyzed = 4958 in approximately 0.13 seconds (36883 lines/second)
Physical Source Lines of Code (SLOC) = 2814
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.355366 [1+] 0.355366 [2+] 0.355366 [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.