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-mpx-1.3.1/src/callbacks.c
Examining data/gromit-mpx-1.3.1/src/callbacks.h
Examining data/gromit-mpx-1.3.1/src/config.c
Examining data/gromit-mpx-1.3.1/src/config.h
Examining data/gromit-mpx-1.3.1/src/gromit-mpx.c
Examining data/gromit-mpx-1.3.1/src/gromit-mpx.h
Examining data/gromit-mpx-1.3.1/src/input.c
Examining data/gromit-mpx-1.3.1/src/input.h

FINAL RESULTS:

data/gromit-mpx-1.3.1/src/callbacks.c:663: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 widgetTwoBuf[4096];
data/gromit-mpx-1.3.1/src/config.c:129: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-mpx-1.3.1/src/config.c:137: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-mpx-1.3.1/src/gromit-mpx.c:904: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 labelBuf[128];
data/gromit-mpx-1.3.1/src/gromit-mpx.c:1059: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-mpx-1.3.1/src/gromit-mpx.c:1062: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-mpx-1.3.1/src/gromit-mpx.c:1105: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-mpx-1.3.1/src/gromit-mpx.c:1108:37:  [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->undo_keycode = atoi (argv[i+1]);
data/gromit-mpx-1.3.1/src/input.c:103:18:  [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 bits[4] = {0,0,0,0};
data/gromit-mpx-1.3.1/src/callbacks.c:205:44:  [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, (guchar*)ans, strlen (ans));
data/gromit-mpx-1.3.1/src/callbacks.c:429:44:  [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, (guchar*)uri, strlen (uri));
data/gromit-mpx-1.3.1/src/config.c:63: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-mpx-1.3.1/src/gromit-mpx.c:336:19:  [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).
      slave_len = strlen (gdk_device_get_name(slave_device));
data/gromit-mpx-1.3.1/src/gromit-mpx.c:338: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 (gdk_device_get_name(device));
data/gromit-mpx-1.3.1/src/gromit-mpx.c:340:21:  [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).
      default_len = strlen(DEFAULT_DEVICE_NAME);
data/gromit-mpx-1.3.1/src/gromit-mpx.c:813: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 &&
data/gromit-mpx-1.3.1/src/gromit-mpx.c:841: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->undo_keyval) > 0 &&

ANALYSIS SUMMARY:

Hits = 17
Lines analyzed = 3246 in approximately 0.09 seconds (38096 lines/second)
Physical Source Lines of Code (SLOC) = 2357
Hits@level = [0]   7 [1]   8 [2]   9 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  24 [1+]  17 [2+]   9 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 10.1824 [1+] 7.21256 [2+] 3.81841 [3+]   0 [4+]   0 [5+]   0
Dot directories skipped = 2 (--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.