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/granatier-20.04.3/src/bonus.h
Examining data/granatier-20.04.3/src/gamescene.cpp
Examining data/granatier-20.04.3/src/infooverlay.cpp
Examining data/granatier-20.04.3/src/arena.cpp
Examining data/granatier-20.04.3/src/mainwindow.h
Examining data/granatier-20.04.3/src/elementitem.h
Examining data/granatier-20.04.3/src/blockitem.cpp
Examining data/granatier-20.04.3/src/gameview.cpp
Examining data/granatier-20.04.3/src/characteritem.h
Examining data/granatier-20.04.3/src/game.cpp
Examining data/granatier-20.04.3/src/playeritem.cpp
Examining data/granatier-20.04.3/src/bombitem.cpp
Examining data/granatier-20.04.3/src/block.h
Examining data/granatier-20.04.3/src/infosidebar.h
Examining data/granatier-20.04.3/src/bonusitem.h
Examining data/granatier-20.04.3/src/gameview.h
Examining data/granatier-20.04.3/src/arenaitem.h
Examining data/granatier-20.04.3/src/player.cpp
Examining data/granatier-20.04.3/src/block.cpp
Examining data/granatier-20.04.3/src/cell.cpp
Examining data/granatier-20.04.3/src/blockitem.h
Examining data/granatier-20.04.3/src/mainwindow.cpp
Examining data/granatier-20.04.3/src/playeritem.h
Examining data/granatier-20.04.3/src/gamescene.h
Examining data/granatier-20.04.3/src/arena.h
Examining data/granatier-20.04.3/src/cell.h
Examining data/granatier-20.04.3/src/granatier_random.h
Examining data/granatier-20.04.3/src/bombitem.h
Examining data/granatier-20.04.3/src/elementitem.cpp
Examining data/granatier-20.04.3/src/bomb.cpp
Examining data/granatier-20.04.3/src/main.cpp
Examining data/granatier-20.04.3/src/arenaitem.cpp
Examining data/granatier-20.04.3/src/bomb.h
Examining data/granatier-20.04.3/src/infooverlay.h
Examining data/granatier-20.04.3/src/game.h
Examining data/granatier-20.04.3/src/characteritem.cpp
Examining data/granatier-20.04.3/src/mapparser.h
Examining data/granatier-20.04.3/src/infosidebar.cpp
Examining data/granatier-20.04.3/src/player.h
Examining data/granatier-20.04.3/src/bonusitem.cpp
Examining data/granatier-20.04.3/src/character.h
Examining data/granatier-20.04.3/src/element.h
Examining data/granatier-20.04.3/src/element.cpp
Examining data/granatier-20.04.3/src/granatierglobals.h
Examining data/granatier-20.04.3/src/config/playerselectoritem.cpp
Examining data/granatier-20.04.3/src/config/playerselectoritem.h
Examining data/granatier-20.04.3/src/config/arenasettings.h
Examining data/granatier-20.04.3/src/config/playersettings.cpp
Examining data/granatier-20.04.3/src/config/playersettings.h
Examining data/granatier-20.04.3/src/config/arenaselector.h
Examining data/granatier-20.04.3/src/config/arenasettings.cpp
Examining data/granatier-20.04.3/src/config/playerselector.cpp
Examining data/granatier-20.04.3/src/config/playerselector.h
Examining data/granatier-20.04.3/src/config/arenaselector.cpp
Examining data/granatier-20.04.3/src/bonus.cpp
Examining data/granatier-20.04.3/src/bombexplosionitem.cpp
Examining data/granatier-20.04.3/src/character.cpp
Examining data/granatier-20.04.3/src/mapparser.cpp
Examining data/granatier-20.04.3/src/bombexplosionitem.h

FINAL RESULTS:

data/granatier-20.04.3/src/config/arenaselector.cpp:293:27:  [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 (!arenaXmlFile.open(QIODevice::ReadOnly)) {
data/granatier-20.04.3/src/config/arenasettings.cpp:79: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 (!arenaFile.open(QIODevice::ReadOnly)) {
data/granatier-20.04.3/src/config/arenasettings.cpp:111: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 ( !svgFile.open( QIODevice::ReadOnly ) ) {
data/granatier-20.04.3/src/game.cpp:148: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 (!arenaXmlFile.open(QIODevice::ReadOnly)) {

ANALYSIS SUMMARY:

Hits = 4
Lines analyzed = 12106 in approximately 0.38 seconds (32054 lines/second)
Physical Source Lines of Code (SLOC) = 7699
Hits@level = [0]   0 [1]   0 [2]   4 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   4 [1+]   4 [2+]   4 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 0.519548 [1+] 0.519548 [2+] 0.519548 [3+]   0 [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.