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/tetzle-2.1.6/src/add_image.cpp
Examining data/tetzle-2.1.6/src/add_image.h
Examining data/tetzle-2.1.6/src/appearance_dialog.cpp
Examining data/tetzle-2.1.6/src/appearance_dialog.h
Examining data/tetzle-2.1.6/src/board.cpp
Examining data/tetzle-2.1.6/src/board.h
Examining data/tetzle-2.1.6/src/choose_game_dialog.cpp
Examining data/tetzle-2.1.6/src/choose_game_dialog.h
Examining data/tetzle-2.1.6/src/color_button.cpp
Examining data/tetzle-2.1.6/src/color_button.h
Examining data/tetzle-2.1.6/src/dancing_links.cpp
Examining data/tetzle-2.1.6/src/dancing_links.h
Examining data/tetzle-2.1.6/src/generator.cpp
Examining data/tetzle-2.1.6/src/generator.h
Examining data/tetzle-2.1.6/src/graphics_layer.cpp
Examining data/tetzle-2.1.6/src/graphics_layer.h
Examining data/tetzle-2.1.6/src/image_properties_dialog.cpp
Examining data/tetzle-2.1.6/src/image_properties_dialog.h
Examining data/tetzle-2.1.6/src/locale_dialog.cpp
Examining data/tetzle-2.1.6/src/locale_dialog.h
Examining data/tetzle-2.1.6/src/main.cpp
Examining data/tetzle-2.1.6/src/message.cpp
Examining data/tetzle-2.1.6/src/message.h
Examining data/tetzle-2.1.6/src/new_game_tab.cpp
Examining data/tetzle-2.1.6/src/new_game_tab.h
Examining data/tetzle-2.1.6/src/open_game_tab.cpp
Examining data/tetzle-2.1.6/src/open_game_tab.h
Examining data/tetzle-2.1.6/src/overview.cpp
Examining data/tetzle-2.1.6/src/overview.h
Examining data/tetzle-2.1.6/src/path.cpp
Examining data/tetzle-2.1.6/src/path.h
Examining data/tetzle-2.1.6/src/piece.cpp
Examining data/tetzle-2.1.6/src/piece.h
Examining data/tetzle-2.1.6/src/tag_manager.cpp
Examining data/tetzle-2.1.6/src/tag_manager.h
Examining data/tetzle-2.1.6/src/thumbnail_delegate.cpp
Examining data/tetzle-2.1.6/src/thumbnail_delegate.h
Examining data/tetzle-2.1.6/src/thumbnail_loader.cpp
Examining data/tetzle-2.1.6/src/thumbnail_loader.h
Examining data/tetzle-2.1.6/src/tile.cpp
Examining data/tetzle-2.1.6/src/tile.h
Examining data/tetzle-2.1.6/src/toolbar_list.cpp
Examining data/tetzle-2.1.6/src/toolbar_list.h
Examining data/tetzle-2.1.6/src/window.cpp
Examining data/tetzle-2.1.6/src/window.h
Examining data/tetzle-2.1.6/src/zoom_slider.cpp
Examining data/tetzle-2.1.6/src/zoom_slider.h

FINAL RESULTS:

data/tetzle-2.1.6/src/generator.cpp:57:59:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
Generator::Generator(int columns, int rows, std::mt19937& random) :
data/tetzle-2.1.6/src/generator.cpp:60:11:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	m_random(random)
data/tetzle-2.1.6/src/generator.h:37:49:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	Generator(int columns, int rows, std::mt19937& random);
data/tetzle-2.1.6/src/path.cpp:54:12:  [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.
	oldpath = getenv("$XDG_DATA_HOME");
data/tetzle-2.1.6/src/board.cpp:279: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::ReadOnly)) {
data/tetzle-2.1.6/src/board.cpp:417: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/tetzle-2.1.6/src/choose_game_dialog.cpp:76: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).
		if (!file.open(QIODevice::ReadOnly)) {
data/tetzle-2.1.6/src/graphics_layer.cpp:472: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::ReadOnly)) {
data/tetzle-2.1.6/src/graphics_layer.cpp:480: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::ReadOnly)) {
data/tetzle-2.1.6/src/graphics_layer.h:43:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char pad[4];
data/tetzle-2.1.6/src/new_game_tab.cpp:61: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).
		if (!file.open(QIODevice::ReadOnly)) {
data/tetzle-2.1.6/src/new_game_tab.cpp:264: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).
		if (!file.open(QIODevice::ReadOnly)) {
data/tetzle-2.1.6/src/open_game_tab.cpp:68: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).
		if (!file.open(QIODevice::ReadOnly)) {
data/tetzle-2.1.6/src/board.cpp:1158:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	QImage image = source.read();
data/tetzle-2.1.6/src/new_game_tab.cpp:482:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			QImage image = reader.read();
data/tetzle-2.1.6/src/thumbnail_loader.cpp:188:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			QImage image = source.read();

ANALYSIS SUMMARY:

Hits = 16
Lines analyzed = 8447 in approximately 0.20 seconds (41583 lines/second)
Physical Source Lines of Code (SLOC) = 5526
Hits@level = [0]   0 [1]   3 [2]   9 [3]   4 [4]   0 [5]   0
Hits@level+ = [0+]  16 [1+]  16 [2+]  13 [3+]   4 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 2.8954 [1+] 2.8954 [2+] 2.35252 [3+] 0.723851 [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.