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/faustworks-0.5~repack0/QFaustItem.cpp
Examining data/faustworks-0.5~repack0/QFaustItem.h
Examining data/faustworks-0.5~repack0/QFaustItemFactory.cpp
Examining data/faustworks-0.5~repack0/CPPHighlighter.cpp
Examining data/faustworks-0.5~repack0/MusicNotationHighlighter.cpp
Examining data/faustworks-0.5~repack0/Resources/resource.h
Examining data/faustworks-0.5~repack0/QFaustPreferences.h
Examining data/faustworks-0.5~repack0/QResolutionDialog.cpp
Examining data/faustworks-0.5~repack0/QLanguageItem.h
Examining data/faustworks-0.5~repack0/QFaustPreferences.cpp
Examining data/faustworks-0.5~repack0/QLanguageCommandPalette.cpp
Examining data/faustworks-0.5~repack0/QItemResizer.h
Examining data/faustworks-0.5~repack0/QFaustItemFactory.h
Examining data/faustworks-0.5~repack0/QLanguageCommandPalette.h
Examining data/faustworks-0.5~repack0/GraphicsSceneMainWindow.cpp
Examining data/faustworks-0.5~repack0/MainWindowObjects.cpp
Examining data/faustworks-0.5~repack0/FaustMainWindow.cpp
Examining data/faustworks-0.5~repack0/FaustMainWindow.h
Examining data/faustworks-0.5~repack0/QSwitcher.h
Examining data/faustworks-0.5~repack0/QLanguageCommandReader.cpp
Examining data/faustworks-0.5~repack0/FaustHighlighter.cpp
Examining data/faustworks-0.5~repack0/QLanguageCommandPaletteLayout.h
Examining data/faustworks-0.5~repack0/QLanguageItemFactory.h
Examining data/faustworks-0.5~repack0/MusicNotationHighlighter.h
Examining data/faustworks-0.5~repack0/QItemResizer.cpp
Examining data/faustworks-0.5~repack0/MainWindowObjects.h
Examining data/faustworks-0.5~repack0/QResolutionDialog.h
Examining data/faustworks-0.5~repack0/main.cpp
Examining data/faustworks-0.5~repack0/QPaletteItem.cpp
Examining data/faustworks-0.5~repack0/QLanguageCommandPaletteLayout.cpp
Examining data/faustworks-0.5~repack0/QPaletteItem.h
Examining data/faustworks-0.5~repack0/QLanguageCommandReader.h
Examining data/faustworks-0.5~repack0/QLanguageItem.cpp
Examining data/faustworks-0.5~repack0/CPPHighlighter.h
Examining data/faustworks-0.5~repack0/GraphicsSceneMainWindow.h
Examining data/faustworks-0.5~repack0/FaustHighlighter.h

FINAL RESULTS:

data/faustworks-0.5~repack0/main.cpp:54: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.
    qtTranslator.load("qt_" + QLocale::system().name());
data/faustworks-0.5~repack0/main.cpp:58:60:  [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.
    myappTranslator.load(":/translations/i18n_" + QLocale::system().name());
data/faustworks-0.5~repack0/GraphicsSceneMainWindow.cpp:1704:11:  [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(QFile::WriteOnly | QFile::Truncate)) 
data/faustworks-0.5~repack0/GraphicsSceneMainWindow.cpp:1721:12:  [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( QFile::ReadOnly ) )
data/faustworks-0.5~repack0/GraphicsSceneMainWindow.cpp:2446:11:  [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 (data.open(QFile::WriteOnly | QFile::Append | QFile::Text )) 
data/faustworks-0.5~repack0/QFaustItem.cpp:270: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 (!file0->open(QIODevice::WriteOnly | QIODevice::Text))
data/faustworks-0.5~repack0/QFaustItem.cpp:497: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 | QIODevice::Text))
data/faustworks-0.5~repack0/QLanguageCommandReader.cpp:48:12:  [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( QFile::ReadOnly ) )
data/faustworks-0.5~repack0/QLanguageItem.cpp:143: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 | QIODevice::Text))
data/faustworks-0.5~repack0/QLanguageItem.cpp:354:12:  [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::WriteOnly | QIODevice::Text))
data/faustworks-0.5~repack0/QLanguageCommandPalette.cpp:41:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	reader.read( this , commandsFile );
data/faustworks-0.5~repack0/QLanguageCommandReader.cpp:43:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool QLanguageCommandReader::read( QLanguageCommandVisitor * visitor , const QString& fileName )
data/faustworks-0.5~repack0/QLanguageCommandReader.h:41:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		bool read( QLanguageCommandVisitor * visitor , const QString& fileName );

ANALYSIS SUMMARY:

Hits = 13
Lines analyzed = 11714 in approximately 0.35 seconds (33914 lines/second)
Physical Source Lines of Code (SLOC) = 7497
Hits@level = [0]   0 [1]   3 [2]   8 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]  13 [1+]  13 [2+]  10 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 1.73403 [1+] 1.73403 [2+] 1.33387 [3+] 0.266773 [4+] 0.266773 [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.