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/g15daemon-1.9.5.3/g15daemon/g15daemon.h
Examining data/g15daemon-1.9.5.3/g15daemon/lcdclient_test.c
Examining data/g15daemon-1.9.5.3/g15daemon/g15_plugins.c
Examining data/g15daemon-1.9.5.3/g15daemon/g15logo.h
Examining data/g15daemon-1.9.5.3/g15daemon/utility_funcs.c
Examining data/g15daemon-1.9.5.3/g15daemon/linked_lists.c
Examining data/g15daemon-1.9.5.3/g15daemon/main.c
Examining data/g15daemon-1.9.5.3/libg15daemon_client/g15daemon_client.h
Examining data/g15daemon-1.9.5.3/libg15daemon_client/g15daemon_net.c
Examining data/g15daemon-1.9.5.3/plugins/g15_plugin_net.c
Examining data/g15daemon-1.9.5.3/plugins/g15_plugin_clock.c
Examining data/g15daemon-1.9.5.3/plugins/g15_plugin_uinput.c

FINAL RESULTS:

data/g15daemon-1.9.5.3/g15daemon/g15_plugins.c:210:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(pluginname, plugin_directory);
data/g15daemon-1.9.5.3/g15daemon/g15_plugins.c:321:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(pluginname, plugin_directory);
data/g15daemon-1.9.5.3/g15daemon/g15_plugins.c:350:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(plugin_fname,PLUGINDIR);
data/g15daemon-1.9.5.3/g15daemon/main.c:426:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
     retval = system("/sbin/kextload " "/System/Library/Extensions/libusbshield.kext");
data/g15daemon-1.9.5.3/g15daemon/utility_funcs.c:199:6:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     vfprintf(stderr,fmt,argp);
data/g15daemon-1.9.5.3/plugins/g15_plugin_clock.c:243:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(date, "%d.%s", t->tm_mday, mon);
data/g15daemon-1.9.5.3/g15daemon/g15_plugins.c:202: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 pluginname[2048];
data/g15daemon-1.9.5.3/g15daemon/g15_plugins.c:276:13:  [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(clientnode->lcd->g15plugin,plugin_args,sizeof(plugin_s));
data/g15daemon-1.9.5.3/g15daemon/g15_plugins.c:304: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 pluginname[2048];
data/g15daemon-1.9.5.3/g15daemon/g15_plugins.c:325:19:  [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[10];
data/g15daemon-1.9.5.3/g15daemon/g15_plugins.c:326:19:  [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.
                  sprintf(tmp,"%i",loadcount);
data/g15daemon-1.9.5.3/g15daemon/g15_plugins.c:347: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.
        char tmp[10];
data/g15daemon-1.9.5.3/g15daemon/g15_plugins.c:348: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.
        char plugin_fname[1024];
data/g15daemon-1.9.5.3/g15daemon/g15_plugins.c:349:9:  [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.
        sprintf(tmp,"%i",i);
data/g15daemon-1.9.5.3/g15daemon/g15daemon.h:171:14:  [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 buf[LCD_BUFSIZE];
data/g15daemon-1.9.5.3/g15daemon/lcdclient_test.c:49: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 lcdbuffer[6880];
data/g15daemon-1.9.5.3/g15daemon/lcdclient_test.c:87:26:  [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 packet[2];
data/g15daemon-1.9.5.3/g15daemon/main.c:98:19:  [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[128];
data/g15daemon-1.9.5.3/g15daemon/main.c:100:19:  [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.
                  sprintf(filename,"/tmp/g15daemon-sc-%i.pbm",scr_num);
data/g15daemon-1.9.5.3/g15daemon/main.c:327:14:  [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 user[256];
data/g15daemon-1.9.5.3/g15daemon/main.c:335: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.
        char daemonargs[20];
data/g15daemon-1.9.5.3/g15daemon/main.c:387:33:  [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).
              g15daemon_debug = atoi(argv[i+1]);
data/g15daemon-1.9.5.3/g15daemon/main.c:402:26:  [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).
              lcdlevel = atoi(argv[i+1]);
data/g15daemon-1.9.5.3/g15daemon/main.c:454: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 location[1024];
data/g15daemon-1.9.5.3/g15daemon/main.c:523:2:  [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 (lcdlist->tail->lcd->buf, canvas->buffer, G15_BUFFER_LEN);
data/g15daemon-1.9.5.3/g15daemon/utility_funcs.c:119: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 pidtxt[128];
data/g15daemon-1.9.5.3/g15daemon/utility_funcs.c:123:15:  [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).
    if ((fd = open(G15DAEMON_PIDFILE, O_RDWR, 0644)) < 0) {
data/g15daemon-1.9.5.3/g15daemon/utility_funcs.c:131: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).
    if((pid = atoi(pidtxt)) <= 0) {
data/g15daemon-1.9.5.3/g15daemon/utility_funcs.c:150: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 pidtxt[128];
data/g15daemon-1.9.5.3/g15daemon/utility_funcs.c:154:39:  [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).
    if(!uf_return_running() &&  (fd = open(G15DAEMON_PIDFILE, O_CREAT|O_RDWR|O_EXCL, 0644)) < 0) {
data/g15daemon-1.9.5.3/g15daemon/utility_funcs.c:158:15:  [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).
    if ((fd = open(G15DAEMON_PIDFILE, O_CREAT|O_RDWR|O_EXCL, 0644)) < 0) {
data/g15daemon-1.9.5.3/g15daemon/utility_funcs.c:357: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 line[1024];
data/g15daemon-1.9.5.3/g15daemon/utility_funcs.c:359:17:  [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).
    config_fd = open(filename,O_CREAT|O_RDWR|O_TRUNC, 0644);
data/g15daemon-1.9.5.3/g15daemon/utility_funcs.c:531: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 tmp[1024];
data/g15daemon-1.9.5.3/g15daemon/utility_funcs.c:537: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 tmp[1024];
data/g15daemon-1.9.5.3/g15daemon/utility_funcs.c:544: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 tmp[1024];
data/g15daemon-1.9.5.3/g15daemon/utility_funcs.c:569:19:  [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).
           return atoi(item->value);
data/g15daemon-1.9.5.3/g15daemon/utility_funcs.c:613:23:  [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).
    if (!(config_fd = open(filename, O_RDWR)))
data/g15daemon-1.9.5.3/g15daemon/utility_funcs.c:644:13:  [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 sectiontitle[1024];
data/g15daemon-1.9.5.3/g15daemon/utility_funcs.c:674:5:  [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(canvas->buffer,buffer,LCD_BUFSIZE);
data/g15daemon-1.9.5.3/g15daemon/utility_funcs.c:675: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).
    fd = open(filename, O_CREAT|O_EXCL|O_WRONLY, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
data/g15daemon-1.9.5.3/libg15daemon_client/g15daemon_net.c:102: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[256];
data/g15daemon-1.9.5.3/libg15daemon_client/g15daemon_net.c:232:14:  [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 packet[2];
data/g15daemon-1.9.5.3/plugins/g15_plugin_clock.c:142: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 buf[10];
data/g15daemon-1.9.5.3/plugins/g15_plugin_clock.c:143: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 ampm[3];
data/g15daemon-1.9.5.3/plugins/g15_plugin_clock.c:151: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.
        char buf2[40];
data/g15daemon-1.9.5.3/plugins/g15_plugin_clock.c:215:3:  [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(c, static_canvas, sizeof(g15canvas));
data/g15daemon-1.9.5.3/plugins/g15_plugin_clock.c:235: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 day[32];		// Tuesday
data/g15daemon-1.9.5.3/plugins/g15_plugin_clock.c:236: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 mon[32];		// March
data/g15daemon-1.9.5.3/plugins/g15_plugin_clock.c:237: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 year[32];	// 1234 AD
data/g15daemon-1.9.5.3/plugins/g15_plugin_clock.c:238: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 time[32];	// 22:33:44
data/g15daemon-1.9.5.3/plugins/g15_plugin_clock.c:239: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 date[32];	// 21.April
data/g15daemon-1.9.5.3/plugins/g15_plugin_clock.c:244:3:  [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.
  sprintf(year, "%4d AD", t->tm_year+1900);
data/g15daemon-1.9.5.3/plugins/g15_plugin_clock.c:284:5:  [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 (lcd->buf, canvas->buffer, G15_BUFFER_LEN);
data/g15daemon-1.9.5.3/plugins/g15_plugin_net.c:320:13:  [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(client_lcd->buf,tmpbuf+header,buflen+header);
data/g15daemon-1.9.5.3/plugins/g15_plugin_uinput.c:71:46:  [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).
    while (uinput_device_fn[i] && (uinp_fd = open(uinput_device_fn[i],O_RDWR))<0){
data/g15daemon-1.9.5.3/plugins/g15_plugin_uinput.c:75:19:  [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).
        uinp_fd = open(custom_filename,O_RDWR);
data/g15daemon-1.9.5.3/g15daemon/g15_plugins.c:211:17:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
                strncat(pluginname,"/",1);
data/g15daemon-1.9.5.3/g15daemon/g15_plugins.c:212:17:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
                strncat(pluginname,ep->d_name,200);
data/g15daemon-1.9.5.3/g15daemon/g15_plugins.c:322:17:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
                strncat(pluginname,"/",1);
data/g15daemon-1.9.5.3/g15daemon/g15_plugins.c:323:17:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
                strncat(pluginname,ep->d_name,200);
data/g15daemon-1.9.5.3/g15daemon/g15_plugins.c:351:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
        strncat(plugin_fname,"/",1);
data/g15daemon-1.9.5.3/g15daemon/g15_plugins.c:352:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat(plugin_fname,g15daemon_cfg_read_string(load_cfg,tmp,""),128);
data/g15daemon-1.9.5.3/g15daemon/main.c:251:15:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
              usleep(5);
data/g15daemon-1.9.5.3/g15daemon/main.c:300:7:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
      umask(0);
data/g15daemon-1.9.5.3/g15daemon/main.c:337:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(daemonargs,argv[i],19);
data/g15daemon-1.9.5.3/g15daemon/main.c:394:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy((char*)user,argv[i+1],128);
data/g15daemon-1.9.5.3/g15daemon/main.c:457:12:  [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((char*)user)==0){
data/g15daemon-1.9.5.3/g15daemon/utility_funcs.c:126:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if((l = read(fd,pidtxt,sizeof(pidtxt)-1)) < 0) {
data/g15daemon-1.9.5.3/g15daemon/utility_funcs.c:164:31:  [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 (write(fd, pidtxt, l = strlen(pidtxt)) != l) {
data/g15daemon-1.9.5.3/g15daemon/utility_funcs.c:362:26:  [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).
    write(config_fd,line,strlen(line));
data/g15daemon-1.9.5.3/g15daemon/utility_funcs.c:368:34:  [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).
            write(config_fd,line,strlen(line));
data/g15daemon-1.9.5.3/g15daemon/utility_funcs.c:376:42:  [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).
                    write(config_fd,line,strlen(line));
data/g15daemon-1.9.5.3/g15daemon/utility_funcs.c:618:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(config_fd, buffer, stats.st_size) != stats.st_size)
data/g15daemon-1.9.5.3/g15daemon/utility_funcs.c:646:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(sectiontitle,start+1,strlen(start)-2);
data/g15daemon-1.9.5.3/g15daemon/utility_funcs.c:646:42:  [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).
            strncpy(sectiontitle,start+1,strlen(start)-2);
data/g15daemon-1.9.5.3/libg15daemon_client/g15daemon_net.c:295:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(1000);    
data/g15daemon-1.9.5.3/plugins/g15_plugin_clock.c:153:81:  [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).
        g15r_renderString (canvas,(unsigned char *)buf2 , 0, G15_TEXT_MED, 80-((strlen(buf2)*5)/2), height-6);
data/g15daemon-1.9.5.3/plugins/g15_plugin_clock.c:166: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).
    len = strlen(buf); 
data/g15daemon-1.9.5.3/plugins/g15_plugin_net.c:259:43:  [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(g15_send(client_sock, (char*)helo, strlen(SERV_HELO))<0){
data/g15daemon-1.9.5.3/plugins/g15_plugin_uinput.c:87:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(uinp.name, "G15 Extra Keys", UINPUT_MAX_NAME_SIZE);

ANALYSIS SUMMARY:

Hits = 81
Lines analyzed = 4223 in approximately 0.18 seconds (23071 lines/second)
Physical Source Lines of Code (SLOC) = 3188
Hits@level = [0]  46 [1]  24 [2]  51 [3]   0 [4]   6 [5]   0
Hits@level+ = [0+] 127 [1+]  81 [2+]  57 [3+]   6 [4+]   6 [5+]   0
Hits/KSLOC@level+ = [0+] 39.8369 [1+] 25.4078 [2+] 17.8795 [3+] 1.88206 [4+] 1.88206 [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.