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/shutdown-qapps-1.7.4/qshutdown/src/gui.cpp
Examining data/shutdown-qapps-1.7.4/qshutdown/src/info.h
Examining data/shutdown-qapps-1.7.4/qshutdown/src/main.cpp
Examining data/shutdown-qapps-1.7.4/qshutdown/src/editor.cpp
Examining data/shutdown-qapps-1.7.4/qshutdown/src/weekday.cpp
Examining data/shutdown-qapps-1.7.4/qshutdown/src/about.cpp
Examining data/shutdown-qapps-1.7.4/qshutdown/src/gui.h
Examining data/shutdown-qapps-1.7.4/qshutdown/src/weekday.h
Examining data/shutdown-qapps-1.7.4/qshutdown/src/ch_passwd.h
Examining data/shutdown-qapps-1.7.4/qshutdown/src/info.cpp
Examining data/shutdown-qapps-1.7.4/qshutdown/src/weekdayitem.cpp
Examining data/shutdown-qapps-1.7.4/qshutdown/src/power.h
Examining data/shutdown-qapps-1.7.4/qshutdown/src/about.h
Examining data/shutdown-qapps-1.7.4/qshutdown/src/calendar.h
Examining data/shutdown-qapps-1.7.4/qshutdown/src/preferences.h
Examining data/shutdown-qapps-1.7.4/qshutdown/src/passwd.cpp
Examining data/shutdown-qapps-1.7.4/qshutdown/src/calendar.cpp
Examining data/shutdown-qapps-1.7.4/qshutdown/src/editor.h
Examining data/shutdown-qapps-1.7.4/qshutdown/src/weekdayitem.h
Examining data/shutdown-qapps-1.7.4/qshutdown/src/ch_passwd.cpp
Examining data/shutdown-qapps-1.7.4/qshutdown/src/preferences.cpp
Examining data/shutdown-qapps-1.7.4/qshutdown/src/passwd.h
Examining data/shutdown-qapps-1.7.4/qprogram-starter/src/gui.cpp
Examining data/shutdown-qapps-1.7.4/qprogram-starter/src/main.cpp
Examining data/shutdown-qapps-1.7.4/qprogram-starter/src/gui.h
Examining data/shutdown-qapps-1.7.4/qprogram-starter/src/preferences.h
Examining data/shutdown-qapps-1.7.4/qprogram-starter/src/preferences.cpp

FINAL RESULTS:

data/shutdown-qapps-1.7.4/qprogram-starter/src/main.cpp:30:41:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
     qtTranslator.load("qt_" + QLocale::system().name(),
data/shutdown-qapps-1.7.4/qprogram-starter/src/main.cpp:37:61:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
     translator.load(trDir + "qprogram-starter-" + QLocale::system().name());
data/shutdown-qapps-1.7.4/qshutdown/src/main.cpp:33:41:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
     qtTranslator.load("qt_" + QLocale::system().name(),
data/shutdown-qapps-1.7.4/qshutdown/src/main.cpp:40:54:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
     translator.load(trDir + "qshutdown-" + QLocale::system().name());
data/shutdown-qapps-1.7.4/qprogram-starter/src/gui.cpp:46: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).
     versionFile.open(QIODevice::ReadOnly | QIODevice::Text);
data/shutdown-qapps-1.7.4/qprogram-starter/src/gui.cpp:222:23:  [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(!outputLog1.open(QIODevice::Append))
data/shutdown-qapps-1.7.4/qprogram-starter/src/gui.cpp:236:23:  [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(!outputLog2.open(QIODevice::Append))
data/shutdown-qapps-1.7.4/qprogram-starter/src/gui.cpp:250:22:  [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(!errorLog1.open(QIODevice::Append))
data/shutdown-qapps-1.7.4/qprogram-starter/src/gui.cpp:264:22:  [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(!errorLog2.open(QIODevice::Append))
data/shutdown-qapps-1.7.4/qprogram-starter/src/gui.cpp:478:30:  [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(!errorLog1.open(QIODevice::Append))
data/shutdown-qapps-1.7.4/qprogram-starter/src/gui.cpp:488:30:  [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(!errorLog2.open(QIODevice::Append))
data/shutdown-qapps-1.7.4/qshutdown/src/about.cpp:51: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).
     versionFile.open(QIODevice::ReadOnly | QIODevice::Text);
data/shutdown-qapps-1.7.4/qshutdown/src/editor.cpp:51:20:  [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(!confFile->open(QIODevice::ReadWrite | QIODevice::Text)){
data/shutdown-qapps-1.7.4/qshutdown/src/editor.cpp:94:20:  [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(!confFile->open(QIODevice::ReadWrite | QIODevice::Text)){
data/shutdown-qapps-1.7.4/qshutdown/src/gui.cpp:67: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).
     versionFile.open(QIODevice::ReadOnly | QIODevice::Text);
data/shutdown-qapps-1.7.4/qshutdown/src/gui.cpp:648:20:  [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(!logfile.open(QIODevice::ReadWrite | QIODevice::Text)){
data/shutdown-qapps-1.7.4/qshutdown/src/gui.cpp:669: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).
         logfile.open(QIODevice::ReadWrite | QIODevice::Text);
data/shutdown-qapps-1.7.4/qshutdown/src/preferences.cpp:359:26:  [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(!autostartFile.open(QIODevice::ReadWrite | QIODevice::Text)){

ANALYSIS SUMMARY:

Hits = 18
Lines analyzed = 5029 in approximately 0.19 seconds (27027 lines/second)
Physical Source Lines of Code (SLOC) = 3967
Hits@level = [0]   0 [1]   0 [2]  14 [3]   0 [4]   4 [5]   0
Hits@level+ = [0+]  18 [1+]  18 [2+]  18 [3+]   4 [4+]   4 [5+]   0
Hits/KSLOC@level+ = [0+] 4.53743 [1+] 4.53743 [2+] 4.53743 [3+] 1.00832 [4+] 1.00832 [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.