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/skanlite-2.2.0/src/SaveLocation.cpp
Examining data/skanlite-2.2.0/src/DBusInterface.h
Examining data/skanlite-2.2.0/src/SkanliteImageSaver.cpp
Examining data/skanlite-2.2.0/src/DBusInterface.cpp
Examining data/skanlite-2.2.0/src/showimagedialog.cpp
Examining data/skanlite-2.2.0/src/skanlite.h
Examining data/skanlite-2.2.0/src/ImageViewer.h
Examining data/skanlite-2.2.0/src/showimagedialog.h
Examining data/skanlite-2.2.0/src/SkanliteImageSaver.h
Examining data/skanlite-2.2.0/src/main.cpp
Examining data/skanlite-2.2.0/src/skanlite.cpp
Examining data/skanlite-2.2.0/src/SaveLocation.h
Examining data/skanlite-2.2.0/src/ImageViewer.cpp

FINAL RESULTS:

data/skanlite-2.2.0/src/SaveLocation.cpp:90:48:  [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).
void SaveLocation::setOpenRequesterOnShow(bool open)
data/skanlite-2.2.0/src/SaveLocation.cpp:92: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).
    m_openRequesterOnShow = open;
data/skanlite-2.2.0/src/SaveLocation.h:54:38:  [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).
    void setOpenRequesterOnShow(bool open);
data/skanlite-2.2.0/src/SkanliteImageSaver.cpp:137:12:  [2] (misc) fopen:
  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).
    file = fopen(qPrintable(m_name), "wb");
data/skanlite-2.2.0/src/skanlite.cpp:507: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).
        tmp.open();
data/skanlite-2.2.0/src/skanlite.cpp:578: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).
        tmpFile.open(QIODevice::ReadOnly);

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 2063 in approximately 0.08 seconds (25080 lines/second)
Physical Source Lines of Code (SLOC) = 1316
Hits@level = [0]   0 [1]   0 [2]   6 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   6 [1+]   6 [2+]   6 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 4.55927 [1+] 4.55927 [2+] 4.55927 [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.