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/peg-solitaire-2.2/scr/tauler.cpp
Examining data/peg-solitaire-2.2/scr/fitxa.cpp
Examining data/peg-solitaire-2.2/scr/tauler.h
Examining data/peg-solitaire-2.2/scr/moviment.cpp
Examining data/peg-solitaire-2.2/scr/moviment.h
Examining data/peg-solitaire-2.2/scr/constants.h
Examining data/peg-solitaire-2.2/scr/funcions.cpp
Examining data/peg-solitaire-2.2/scr/rellotge.cpp
Examining data/peg-solitaire-2.2/scr/frmprincipal.h
Examining data/peg-solitaire-2.2/scr/fitxa.h
Examining data/peg-solitaire-2.2/scr/frmprincipal.cpp
Examining data/peg-solitaire-2.2/scr/funcions.h
Examining data/peg-solitaire-2.2/scr/rellotge.h
Examining data/peg-solitaire-2.2/scr/main.cpp

FINAL RESULTS:

data/peg-solitaire-2.2/scr/frmprincipal.cpp:74:27:  [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.
  localePrograma=QLocale::system().name();
data/peg-solitaire-2.2/scr/frmprincipal.cpp:808:53:  [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.
        QSettings().value("General/idioma",QLocale::system().name()).toString();
data/peg-solitaire-2.2/scr/main.cpp:52:40:  [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.
     qt_translatorFileName += QLocale::system().name();
data/peg-solitaire-2.2/scr/main.cpp:63:47:  [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.
   appTranslator->load("solitari_" + QLocale::system().name(), app.applicationDirPath()+QDir().separator()+"locales");
data/peg-solitaire-2.2/scr/frmprincipal.cpp:213: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 (!arxiuData.open(QIODevice::ReadOnly | QIODevice::Text)){
data/peg-solitaire-2.2/scr/frmprincipal.cpp:938:16:  [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 (!arxiu.open(QIODevice::WriteOnly)){return;}
data/peg-solitaire-2.2/scr/frmprincipal.cpp:2401: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 (arxiu.open(QIODevice::Append)){arxiuObert=true;}
data/peg-solitaire-2.2/scr/frmprincipal.cpp:2403: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).
    else if (arxiu.open(QIODevice::WriteOnly)){arxiuObert=true;}
data/peg-solitaire-2.2/scr/frmprincipal.cpp:2447:16:  [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 (arxiu.open(QIODevice::ReadOnly)){
data/peg-solitaire-2.2/scr/frmprincipal.cpp:2481: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 (arxiu.open(QIODevice::Append)){arxiuObert=true;}
data/peg-solitaire-2.2/scr/frmprincipal.cpp:2535: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 (arxiu.open(QIODevice::ReadOnly)){
data/peg-solitaire-2.2/scr/frmprincipal.cpp:2620: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).
      if (arxiu.open(QIODevice::Append)){         
data/peg-solitaire-2.2/scr/frmprincipal.cpp:2670: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).
      if (arxiu.open(QIODevice::Append)){
data/peg-solitaire-2.2/scr/frmprincipal.cpp:3231: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).
       if (arxiu.open(QIODevice::Append)){
data/peg-solitaire-2.2/scr/frmprincipal.cpp:3523: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).
      if (arxiu.open(QIODevice::Append)){
data/peg-solitaire-2.2/scr/frmprincipal.cpp:3560:16:  [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 (arxiu.open(QIODevice::ReadOnly | QIODevice::Text)){
data/peg-solitaire-2.2/scr/frmprincipal.cpp:3973: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).
 if (!arxiuData.open(QIODevice::ReadOnly | QIODevice::Text)){
data/peg-solitaire-2.2/scr/tauler.cpp:1669: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).
      if (arxiu.open(QIODevice::Append)){

ANALYSIS SUMMARY:

Hits = 18
Lines analyzed = 9176 in approximately 0.26 seconds (35898 lines/second)
Physical Source Lines of Code (SLOC) = 4893
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+] 3.67872 [1+] 3.67872 [2+] 3.67872 [3+] 0.817494 [4+] 0.817494 [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.