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/gromit-20041213/gromit.c

FINAL RESULTS:

data/gromit-20041213/gromit.c:1056:25:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
                        g_get_home_dir(), ".gromitrc", NULL);
data/gromit-20041213/gromit.c:1057:10:  [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).
  file = open (filename, O_RDONLY);
data/gromit-20041213/gromit.c:1064:14:  [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).
      file = open (filename, O_RDONLY);
data/gromit-20041213/gromit.c:1591:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
           if (i+1 < argc && atoi (argv[i+1]) > 0)
data/gromit-20041213/gromit.c:1594:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
               data->hot_keycode = atoi (argv[i+1]);
data/gromit-20041213/gromit.c:468:13:  [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).
      len = strlen (device->name);
data/gromit-20041213/gromit.c:944:35:  [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).
                          8, uri, strlen (uri));
data/gromit-20041213/gromit.c:990: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).
  len = strlen (scanner->value.v_string);
data/gromit-20041213/gromit.c:1487:11:  [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 (data->hot_keyval) > 0 &&

ANALYSIS SUMMARY:

Hits = 9
Lines analyzed = 1721 in approximately 0.06 seconds (26522 lines/second)
Physical Source Lines of Code (SLOC) = 1350
Hits@level = [0]   1 [1]   4 [2]   4 [3]   1 [4]   0 [5]   0
Hits@level+ = [0+]  10 [1+]   9 [2+]   5 [3+]   1 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 7.40741 [1+] 6.66667 [2+] 3.7037 [3+] 0.740741 [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.