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/gnome-robots-3.38.0/src/cursor-down-left.h
Examining data/gnome-robots-3.38.0/src/cursor-down-right.h
Examining data/gnome-robots-3.38.0/src/cursor-down.h
Examining data/gnome-robots-3.38.0/src/cursor-hold.h
Examining data/gnome-robots-3.38.0/src/cursor-left.h
Examining data/gnome-robots-3.38.0/src/cursor-right.h
Examining data/gnome-robots-3.38.0/src/cursor-up-left.h
Examining data/gnome-robots-3.38.0/src/cursor-up-right.h
Examining data/gnome-robots-3.38.0/src/cursor-up.h
Examining data/gnome-robots-3.38.0/src/cursors.c
Examining data/gnome-robots-3.38.0/src/cursors.h
Examining data/gnome-robots-3.38.0/src/find-file.c
Examining data/gnome-robots-3.38.0/src/find-file.h
Examining data/gnome-robots-3.38.0/src/game.c
Examining data/gnome-robots-3.38.0/src/game.h
Examining data/gnome-robots-3.38.0/src/gameconfig.c
Examining data/gnome-robots-3.38.0/src/gameconfig.h
Examining data/gnome-robots-3.38.0/src/games-controls.c
Examining data/gnome-robots-3.38.0/src/games-controls.h
Examining data/gnome-robots-3.38.0/src/games-file-list.c
Examining data/gnome-robots-3.38.0/src/games-file-list.h
Examining data/gnome-robots-3.38.0/src/games-preimage.c
Examining data/gnome-robots-3.38.0/src/games-preimage.h
Examining data/gnome-robots-3.38.0/src/gbdefs.h
Examining data/gnome-robots-3.38.0/src/gnome-robots.c
Examining data/gnome-robots-3.38.0/src/gnome-robots.h
Examining data/gnome-robots-3.38.0/src/graphics.c
Examining data/gnome-robots-3.38.0/src/graphics.h
Examining data/gnome-robots-3.38.0/src/keyboard.c
Examining data/gnome-robots-3.38.0/src/keyboard.h
Examining data/gnome-robots-3.38.0/src/properties.c
Examining data/gnome-robots-3.38.0/src/properties.h
Examining data/gnome-robots-3.38.0/src/sound.c
Examining data/gnome-robots-3.38.0/src/sound.h

FINAL RESULTS:

data/gnome-robots-3.38.0/src/gnome-robots.c:315:3:  [3] (random) srand:
  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.
  srand (tv.tv_usec);
data/gnome-robots-3.38.0/src/gameconfig.c:77:8:  [2] (misc) fopen:
  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).
  fp = fopen (fname, "r");
data/gnome-robots-3.38.0/src/games-preimage.c:195:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&pixel, b, sizeof (guint32));
data/gnome-robots-3.38.0/src/properties.c:282:5:  [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.
    char buffer[64];
data/gnome-robots-3.38.0/src/properties.c:608:3:  [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.
  char colour[64];
data/gnome-robots-3.38.0/src/properties.c:648:3:  [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.
  char buffer[64];
data/gnome-robots-3.38.0/src/gameconfig.c:94:9:  [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).
    if (strlen (buffer) < 3)

ANALYSIS SUMMARY:

Hits = 7
Lines analyzed = 6741 in approximately 0.21 seconds (32882 lines/second)
Physical Source Lines of Code (SLOC) = 4264
Hits@level = [0]   2 [1]   1 [2]   5 [3]   1 [4]   0 [5]   0
Hits@level+ = [0+]   9 [1+]   7 [2+]   6 [3+]   1 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 2.11069 [1+] 1.64165 [2+] 1.40713 [3+] 0.234522 [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.