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/flatzebra-0.1.7/src/flatzebra/Joystick.cpp
Examining data/flatzebra-0.1.7/src/flatzebra/SoundMixer.h
Examining data/flatzebra-0.1.7/src/flatzebra/SoundMixer.cpp
Examining data/flatzebra-0.1.7/src/flatzebra/RSprite.cpp
Examining data/flatzebra-0.1.7/src/flatzebra/PixmapLoadError.cpp
Examining data/flatzebra-0.1.7/src/flatzebra/Couple.h
Examining data/flatzebra-0.1.7/src/flatzebra/PixmapArray.h
Examining data/flatzebra-0.1.7/src/flatzebra/PixmapLoadError.h
Examining data/flatzebra-0.1.7/src/flatzebra/GameEngine.cpp
Examining data/flatzebra-0.1.7/src/flatzebra/Sprite.cpp
Examining data/flatzebra-0.1.7/src/flatzebra/Sprite.h
Examining data/flatzebra-0.1.7/src/flatzebra/KeyState.h
Examining data/flatzebra-0.1.7/src/flatzebra/RSprite.h
Examining data/flatzebra-0.1.7/src/flatzebra/RCouple.cpp
Examining data/flatzebra-0.1.7/src/flatzebra/RCouple.h
Examining data/flatzebra-0.1.7/src/flatzebra/PixmapArray.cpp
Examining data/flatzebra-0.1.7/src/flatzebra/GameEngine.h
Examining data/flatzebra-0.1.7/src/flatzebra/Joystick.h

FINAL RESULTS:

data/flatzebra-0.1.7/src/flatzebra/GameEngine.h:156:14:  [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 gamma_table[256];
data/flatzebra-0.1.7/src/flatzebra/GameEngine.cpp:278:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    Couple stringSizeInPixels(strlen(s) * fontDim.x, fontDim.y);
data/flatzebra-0.1.7/src/flatzebra/GameEngine.cpp:288:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int stringWidthInPixels = strlen(s) * fontDim.x;
data/flatzebra-0.1.7/src/flatzebra/GameEngine.cpp:299:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int stringWidthInPixels = strlen(s) * fontDim.x;

ANALYSIS SUMMARY:

Hits = 4
Lines analyzed = 3673 in approximately 0.21 seconds (17467 lines/second)
Physical Source Lines of Code (SLOC) = 1973
Hits@level = [0]   0 [1]   3 [2]   1 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   4 [1+]   4 [2+]   1 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 2.02737 [1+] 2.02737 [2+] 0.506842 [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.