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-games-app-3.36.1/plugins/nintendo-ds/src/nintendo-ds-icon-extract.c
Examining data/gnome-games-app-3.36.1/plugins/playstation/src/disc-file-info.c
Examining data/gnome-games-app-3.36.1/plugins/playstation/src/disc-file-info.h
Examining data/gnome-games-app-3.36.1/plugins/playstation/src/disc-image-time.c
Examining data/gnome-games-app-3.36.1/plugins/playstation/src/disc-image-time.h
Examining data/gnome-games-app-3.36.1/plugins/playstation/src/disc-image.c
Examining data/gnome-games-app-3.36.1/plugins/playstation/src/disc-image.h
Examining data/gnome-games-app-3.36.1/plugins/playstation/src/playstation-disc-image.c
Examining data/gnome-games-app-3.36.1/src/gamepad/linux/input-event-codes.h

FINAL RESULTS:

data/gnome-games-app-3.36.1/plugins/playstation/src/disc-image.c:48:92:  [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 (g_ascii_strncasecmp (games_disc_file_info_access_name (file_info), data->filename, strlen (data->filename)) == 0) {
data/gnome-games-app-3.36.1/plugins/playstation/src/disc-image.c:102:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  gssize read;
data/gnome-games-app-3.36.1/plugins/playstation/src/disc-image.c:160:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  gssize read;
data/gnome-games-app-3.36.1/plugins/playstation/src/playstation-disc-image.c:47:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (label_buffer, (const char *) frame.mode2.content + 52, 32);
data/gnome-games-app-3.36.1/plugins/playstation/src/playstation-disc-image.c:85:18:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    items_read = sscanf ((char *) frame.mode1.content, "BOOT = cdrom:\\%255s", exe_buffer);
data/gnome-games-app-3.36.1/plugins/playstation/src/playstation-disc-image.c:108:18:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    items_read = sscanf ((char *) frame.mode1.content, "BOOT = cdrom:%255s", exe_buffer);
data/gnome-games-app-3.36.1/plugins/playstation/src/playstation-disc-image.c:141:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (exe_buffer, ptr, 255);

ANALYSIS SUMMARY:

Hits = 7
Lines analyzed = 1779 in approximately 0.18 seconds (9728 lines/second)
Physical Source Lines of Code (SLOC) = 1373
Hits@level = [0]   0 [1]   7 [2]   0 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   7 [1+]   7 [2+]   0 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 5.09832 [1+] 5.09832 [2+]   0 [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.