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/smtube-18.3.0/src/browserwindow.cpp
Examining data/smtube-18.3.0/src/lineedit_with_icon.h
Examining data/smtube-18.3.0/src/links.h
Examining data/smtube-18.3.0/src/supportedurls.h
Examining data/smtube-18.3.0/src/codedownloader.cpp
Examining data/smtube-18.3.0/src/sig.h
Examining data/smtube-18.3.0/src/ytsig.cpp
Examining data/smtube-18.3.0/src/version.h
Examining data/smtube-18.3.0/src/players.cpp
Examining data/smtube-18.3.0/src/supportedurls.cpp
Examining data/smtube-18.3.0/src/playerdialog.cpp
Examining data/smtube-18.3.0/src/codedownloader.h
Examining data/smtube-18.3.0/src/sig.cpp
Examining data/smtube-18.3.0/src/retrieveyoutubeurl.cpp
Examining data/smtube-18.3.0/src/configdialog.cpp
Examining data/smtube-18.3.0/src/mywebview.h
Examining data/smtube-18.3.0/src/myscroller.h
Examining data/smtube-18.3.0/src/about.cpp
Examining data/smtube-18.3.0/src/mywebpage.h
Examining data/smtube-18.3.0/src/lineedit_with_icon.cpp
Examining data/smtube-18.3.0/src/loadpage.h
Examining data/smtube-18.3.0/src/ytsig.h
Examining data/smtube-18.3.0/src/loadpage.cpp
Examining data/smtube-18.3.0/src/version.cpp
Examining data/smtube-18.3.0/src/players.h
Examining data/smtube-18.3.0/src/about.h
Examining data/smtube-18.3.0/src/mywebview.cpp
Examining data/smtube-18.3.0/src/mycookiejar.cpp
Examining data/smtube-18.3.0/src/hdpisupport.cpp
Examining data/smtube-18.3.0/src/hdpisupport.h
Examining data/smtube-18.3.0/src/hcplayer.h
Examining data/smtube-18.3.0/src/desktopinfo.cpp
Examining data/smtube-18.3.0/src/myscroller.cpp
Examining data/smtube-18.3.0/src/mycookiejar.h
Examining data/smtube-18.3.0/src/main.cpp
Examining data/smtube-18.3.0/src/desktopinfo.h
Examining data/smtube-18.3.0/src/mywebpage.cpp
Examining data/smtube-18.3.0/src/filechooser.h
Examining data/smtube-18.3.0/src/filechooser.cpp
Examining data/smtube-18.3.0/src/retrieveyoutubeurl.h
Examining data/smtube-18.3.0/src/playerdialog.h
Examining data/smtube-18.3.0/src/configdialog.h
Examining data/smtube-18.3.0/src/browserwindow.h

FINAL RESULTS:

data/smtube-18.3.0/src/main.cpp:141:28:  [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.
	QString locale = QLocale::system().name();
data/smtube-18.3.0/src/main.cpp:36:33:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char * XDG_CONFIG_HOME = getenv("XDG_CONFIG_HOME");
data/smtube-18.3.0/src/main.cpp:55:33:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char * XDG_CONFIG_HOME = getenv("XDG_CONFIG_HOME");
data/smtube-18.3.0/src/codedownloader.cpp:95: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))  {
data/smtube-18.3.0/src/ytsig.cpp:83:4:  [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).
	f.open(QIODevice::ReadOnly);

ANALYSIS SUMMARY:

Hits = 5
Lines analyzed = 5314 in approximately 0.16 seconds (33278 lines/second)
Physical Source Lines of Code (SLOC) = 3552
Hits@level = [0]   0 [1]   0 [2]   2 [3]   2 [4]   1 [5]   0
Hits@level+ = [0+]   5 [1+]   5 [2+]   5 [3+]   3 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 1.40766 [1+] 1.40766 [2+] 1.40766 [3+] 0.844595 [4+] 0.281532 [5+]   0
Dot directories skipped = 3 (--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.