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/gjacktransport-0.6.4/src/gjack.c
Examining data/gjacktransport-0.6.4/src/callbacks.h
Examining data/gjacktransport-0.6.4/src/rc_gjc.c
Examining data/gjacktransport-0.6.4/src/main.c
Examining data/gjacktransport-0.6.4/src/interface.h
Examining data/gjacktransport-0.6.4/src/support.c
Examining data/gjacktransport-0.6.4/src/gjackclock.h
Examining data/gjacktransport-0.6.4/src/support.h
Examining data/gjacktransport-0.6.4/src/callbacks.c
Examining data/gjacktransport-0.6.4/src/rc_gjt.c
Examining data/gjacktransport-0.6.4/src/framerate.c
Examining data/gjacktransport-0.6.4/src/gjackclock.c
Examining data/gjacktransport-0.6.4/src/lash.c
Examining data/gjacktransport-0.6.4/src/interface.c
Examining data/gjacktransport-0.6.4/src/framerate.h
Examining data/gjacktransport-0.6.4/src/gjacktransport.h
Examining data/gjacktransport-0.6.4/src/resourceconfig.c
Examining data/gjacktransport-0.6.4/src/gjack.h

FINAL RESULTS:

data/gjacktransport-0.6.4/src/framerate.c:147:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(smptestring,13,fmt,
data/gjacktransport-0.6.4/src/gjack.c:34:14:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	text_size = vsnprintf(NULL, 0, format, arglist);
data/gjacktransport-0.6.4/src/gjack.c:42:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(text, text_size+1, format, arglist);
data/gjacktransport-0.6.4/src/resourceconfig.c:133:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(filename, "%s/%s", SYSCFGDIR, GJACKTRANSPORTRC);
data/gjacktransport-0.6.4/src/resourceconfig.c:144:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(filename, "%s/.%s", home, GJACKTRANSPORTRC);
data/gjacktransport-0.6.4/src/resourceconfig.c:154:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(filename, "./%s", GJACKTRANSPORTRC);
data/gjacktransport-0.6.4/src/resourceconfig.c:161:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(filename, "%s/%s", SYSCFGDIR, GJACKTRANSPORTRC);
data/gjacktransport-0.6.4/src/resourceconfig.c:166:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(filename, "%s/.%s", home, GJACKTRANSPORTRC);
data/gjacktransport-0.6.4/src/resourceconfig.c:170:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(filename, "./%s", GJACKTRANSPORTRC);
data/gjacktransport-0.6.4/src/callbacks.c:1138:67:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They 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.
		gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (dialog), getenv("HOME"));
data/gjacktransport-0.6.4/src/gjackclock.c:244:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt_long (argc, argv, 
data/gjacktransport-0.6.4/src/main.c:128:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt_long (argc, argv, 
data/gjacktransport-0.6.4/src/resourceconfig.c:136:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They 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.
	home = getenv("HOME");
data/gjacktransport-0.6.4/src/resourceconfig.c:164:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They 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.
	home = getenv("HOME");
data/gjacktransport-0.6.4/src/callbacks.c:69:7:  [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.
const char key_names[MAX_KEYBINDING][12] = {
data/gjacktransport-0.6.4/src/callbacks.c:182: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 name[4];
data/gjacktransport-0.6.4/src/callbacks.c:183:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		if (pos<26) sprintf(name,"%c", 'A'+pos);
data/gjacktransport-0.6.4/src/callbacks.c:184:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		else        sprintf(name,"%02i", pos-26);
data/gjacktransport-0.6.4/src/callbacks.c:412:2:  [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 txt[64];
data/gjacktransport-0.6.4/src/callbacks.c:437:2:  [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 txt[64];
data/gjacktransport-0.6.4/src/callbacks.c:438:2:  [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 kxt[20];
data/gjacktransport-0.6.4/src/callbacks.c:1165: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 kxt[20];
data/gjacktransport-0.6.4/src/callbacks.c:1224:2:  [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 txt[64];
data/gjacktransport-0.6.4/src/gjack.c:55:1:  [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 jackid[16];
data/gjacktransport-0.6.4/src/gjackclock.c:78:1:  [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 jackid[16];
data/gjacktransport-0.6.4/src/gjackclock.c:274:23:  [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).
          font_size = atoi (optarg);
data/gjacktransport-0.6.4/src/gjackclock.c:354: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 fpstxt[16];
data/gjacktransport-0.6.4/src/gjackclock.c:420: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 font[1024];
data/gjacktransport-0.6.4/src/gjackclock.c:454: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 font[1024];
data/gjacktransport-0.6.4/src/gjackclock.c:571:17:  [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).
    int win_x = atoi(win_pos);
data/gjacktransport-0.6.4/src/gjackclock.c:573:20:  [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 (t) win_y = atoi(t+1);
data/gjacktransport-0.6.4/src/lash.c:136:4:  [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 tmp[32];
data/gjacktransport-0.6.4/src/lash.c:164:4:  [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 tmp[32];
data/gjacktransport-0.6.4/src/lash.c:187:15:  [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).
		int mymem = atoi(key+7);
data/gjacktransport-0.6.4/src/lash.c:209:15:  [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).
		int mykey = atoi(key+11);
data/gjacktransport-0.6.4/src/rc_gjc.c:48:17:  [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).
    int mykey = atoi(key+11);
data/gjacktransport-0.6.4/src/rc_gjc.c:51:20:  [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).
    key_cfg[mykey]=atoi(value);
data/gjacktransport-0.6.4/src/rc_gjc.c:62:17:  [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).
    font_size = atoi (value);
data/gjacktransport-0.6.4/src/rc_gjc.c:64: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).
    want_ignore_timemaster = atoi(value)?1:0;
data/gjacktransport-0.6.4/src/rc_gjc.c:66:16:  [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).
    show_fps = atoi(value)?1:0;
data/gjacktransport-0.6.4/src/rc_gjc.c:68:20:  [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).
    want_scaling = atoi(value)?1:0;
data/gjacktransport-0.6.4/src/rc_gjc.c:70:18:  [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).
    want_ontop = atoi(value)?1:0;
data/gjacktransport-0.6.4/src/rc_gjc.c:72:24:  [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).
    use_table_layout = atoi(value)?1:0;
data/gjacktransport-0.6.4/src/rc_gjc.c:79:15:  [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).
    my_root_x=atoi(value);
data/gjacktransport-0.6.4/src/rc_gjc.c:81:15:  [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).
    my_root_y=atoi(value);
data/gjacktransport-0.6.4/src/rc_gjt.c:59:17:  [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).
    int mymem = atoi(key+7);
data/gjacktransport-0.6.4/src/rc_gjt.c:70:23:  [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).
      stg[mymem].unit=atoi(value);
data/gjacktransport-0.6.4/src/rc_gjt.c:80:17:  [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).
    int mykey = atoi(key+11);
data/gjacktransport-0.6.4/src/rc_gjt.c:83:20:  [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).
    key_cfg[mykey]=atoi(value);
data/gjacktransport-0.6.4/src/rc_gjt.c:85:15:  [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).
    dothejack(atoi(value));
data/gjacktransport-0.6.4/src/rc_gjt.c:87:16:  [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).
    select_mem(atoi(value)-1);
data/gjacktransport-0.6.4/src/rc_gjt.c:91:42:  [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).
    showhide("checkbutton5","statusbar1",atoi(value));
data/gjacktransport-0.6.4/src/rc_gjt.c:93:42:  [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).
    showhide("checkbutton3","handlebox3",atoi(value));
data/gjacktransport-0.6.4/src/rc_gjt.c:95:42:  [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).
    showhide("checkbutton7","handlebox4",atoi(value));
data/gjacktransport-0.6.4/src/rc_gjt.c:97:38:  [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).
    showhide("checkbutton6","table1",atoi(value));
data/gjacktransport-0.6.4/src/rc_gjt.c:99:42:  [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).
    showhide("checkbutton4","handlebox1",atoi(value));
data/gjacktransport-0.6.4/src/rc_gjt.c:101:42:  [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).
    showhide("checkbutton2","handlebox2",atoi(value));
data/gjacktransport-0.6.4/src/rc_gjt.c:103:43:  [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).
    showhide("checkbutton8","hbox_labels",atoi(value));
data/gjacktransport-0.6.4/src/rc_gjt.c:105:9:  [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 (atoi(value)) fffr=jffr; // XXX
data/gjacktransport-0.6.4/src/rc_gjt.c:108:17:  [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).
    uffr->flags=atoi(value);
data/gjacktransport-0.6.4/src/rc_gjt.c:110:15:  [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).
    my_root_x=atoi(value);
data/gjacktransport-0.6.4/src/rc_gjt.c:112:15:  [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).
    my_root_y=atoi(value);
data/gjacktransport-0.6.4/src/rc_gjt.c:114:14:  [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).
    my_width=atoi(value);
data/gjacktransport-0.6.4/src/rc_gjt.c:116:15:  [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).
    my_height=atoi(value);
data/gjacktransport-0.6.4/src/rc_gjt.c:118:13:  [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).
    no_lash=atoi(value)?1:0;
data/gjacktransport-0.6.4/src/rc_gjt.c:120:15:  [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).
    no_resize=atoi(value)?1:0;
data/gjacktransport-0.6.4/src/rc_gjt.c:135:14:  [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).
  if (!(fp = fopen(fn, "w"))) {
data/gjacktransport-0.6.4/src/rc_gjt.c:167:9:  [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.
  const char *kbc[MAX_KEYBINDING] = {
data/gjacktransport-0.6.4/src/resourceconfig.c:69:2:  [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 line[MAX_LINE_LEN];
data/gjacktransport-0.6.4/src/resourceconfig.c:75:20:  [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).
	if (!(config_fp = fopen(fn, "r"))) {
data/gjacktransport-0.6.4/src/resourceconfig.c:159:2:  [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 filename[PATH_MAX];
data/gjacktransport-0.6.4/src/callbacks.c:937:6:  [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(n) > 0) stg[mem].name = strdup(n);
data/gjacktransport-0.6.4/src/gjackclock.c:340: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).
    int len=strlen(txt);
data/gjacktransport-0.6.4/src/lash.c:202:8:  [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(stg[mymem].name) == 0) {free(stg[mymem].name); stg[mymem].name=NULL;}
data/gjacktransport-0.6.4/src/resourceconfig.c:130: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).
	size = strlen(SYSCFGDIR) + strlen(GJACKTRANSPORTRC) + 2;
data/gjacktransport-0.6.4/src/resourceconfig.c:130:29:  [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).
	size = strlen(SYSCFGDIR) + strlen(GJACKTRANSPORTRC) + 2;
data/gjacktransport-0.6.4/src/resourceconfig.c:139:10:  [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).
		size = strlen(home) + strlen(GJACKTRANSPORTRC) + 2;
data/gjacktransport-0.6.4/src/resourceconfig.c:139:25:  [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).
		size = strlen(home) + strlen(GJACKTRANSPORTRC) + 2;
data/gjacktransport-0.6.4/src/resourceconfig.c:149: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).
	size = strlen(GJACKTRANSPORTRC) + 2;
data/gjacktransport-0.6.4/src/resourceconfig.c:160:7:  [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(SYSCFGDIR) + strlen(GJACKTRANSPORTRC) + 2) < PATH_MAX) {
data/gjacktransport-0.6.4/src/resourceconfig.c:160:27:  [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(SYSCFGDIR) + strlen(GJACKTRANSPORTRC) + 2) < PATH_MAX) {
data/gjacktransport-0.6.4/src/resourceconfig.c:165:15:  [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 (home && (strlen(home) + strlen(GJACKTRANSPORTRC) + 2) < PATH_MAX) {
data/gjacktransport-0.6.4/src/resourceconfig.c:165:30:  [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 (home && (strlen(home) + strlen(GJACKTRANSPORTRC) + 2) < PATH_MAX) {
data/gjacktransport-0.6.4/src/resourceconfig.c:169:6:  [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(GJACKTRANSPORTRC) + 2 < PATH_MAX) {

ANALYSIS SUMMARY:

Hits = 84
Lines analyzed = 5315 in approximately 0.15 seconds (35561 lines/second)
Physical Source Lines of Code (SLOC) = 4198
Hits@level = [0] 112 [1]  13 [2]  57 [3]   5 [4]   9 [5]   0
Hits@level+ = [0+] 196 [1+]  84 [2+]  71 [3+]  14 [4+]   9 [5+]   0
Hits/KSLOC@level+ = [0+] 46.6889 [1+] 20.0095 [2+] 16.9128 [3+] 3.33492 [4+] 2.14388 [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.