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/growlight-1.2.21/src/aggregate.c
Examining data/growlight-1.2.21/src/aggregate.h
Examining data/growlight-1.2.21/src/apm.c
Examining data/growlight-1.2.21/src/apm.h
Examining data/growlight-1.2.21/src/crypt.c
Examining data/growlight-1.2.21/src/crypt.h
Examining data/growlight-1.2.21/src/dm.c
Examining data/growlight-1.2.21/src/dm.h
Examining data/growlight-1.2.21/src/dmi.c
Examining data/growlight-1.2.21/src/dmi.h
Examining data/growlight-1.2.21/src/fs.c
Examining data/growlight-1.2.21/src/fs.h
Examining data/growlight-1.2.21/src/gpt.c
Examining data/growlight-1.2.21/src/gpt.h
Examining data/growlight-1.2.21/src/growlight.c
Examining data/growlight-1.2.21/src/growlight.h
Examining data/growlight-1.2.21/src/health.c
Examining data/growlight-1.2.21/src/health.h
Examining data/growlight-1.2.21/src/libblkid.c
Examining data/growlight-1.2.21/src/libblkid.h
Examining data/growlight-1.2.21/src/mbr.c
Examining data/growlight-1.2.21/src/mbr.h
Examining data/growlight-1.2.21/src/mdadm.c
Examining data/growlight-1.2.21/src/mdadm.h
Examining data/growlight-1.2.21/src/mmap.c
Examining data/growlight-1.2.21/src/mmap.h
Examining data/growlight-1.2.21/src/mounts.c
Examining data/growlight-1.2.21/src/mounts.h
Examining data/growlight-1.2.21/src/msdos.c
Examining data/growlight-1.2.21/src/msdos.h
Examining data/growlight-1.2.21/src/notcurses/notcurses-ui.h
Examining data/growlight-1.2.21/src/notcurses/notcurses.c
Examining data/growlight-1.2.21/src/notcurses/notui-aggregate.c
Examining data/growlight-1.2.21/src/notcurses/notui-aggregate.h
Examining data/growlight-1.2.21/src/nvme.c
Examining data/growlight-1.2.21/src/nvme.h
Examining data/growlight-1.2.21/src/popen.c
Examining data/growlight-1.2.21/src/popen.h
Examining data/growlight-1.2.21/src/ptable.c
Examining data/growlight-1.2.21/src/ptable.h
Examining data/growlight-1.2.21/src/ptypes.c
Examining data/growlight-1.2.21/src/ptypes.h
Examining data/growlight-1.2.21/src/readline/readline.c
Examining data/growlight-1.2.21/src/secure.c
Examining data/growlight-1.2.21/src/secure.h
Examining data/growlight-1.2.21/src/sg.c
Examining data/growlight-1.2.21/src/sg.h
Examining data/growlight-1.2.21/src/sha.c
Examining data/growlight-1.2.21/src/sha.h
Examining data/growlight-1.2.21/src/smart.c
Examining data/growlight-1.2.21/src/smart.h
Examining data/growlight-1.2.21/src/ssd.c
Examining data/growlight-1.2.21/src/ssd.h
Examining data/growlight-1.2.21/src/stats.c
Examining data/growlight-1.2.21/src/stats.h
Examining data/growlight-1.2.21/src/swap.c
Examining data/growlight-1.2.21/src/swap.h
Examining data/growlight-1.2.21/src/sysfs.c
Examining data/growlight-1.2.21/src/sysfs.h
Examining data/growlight-1.2.21/src/target.c
Examining data/growlight-1.2.21/src/target.h
Examining data/growlight-1.2.21/src/threads.c
Examining data/growlight-1.2.21/src/threads.h
Examining data/growlight-1.2.21/src/udev.c
Examining data/growlight-1.2.21/src/udev.h
Examining data/growlight-1.2.21/src/zfs.c
Examining data/growlight-1.2.21/src/zfs.h

FINAL RESULTS:

data/growlight-1.2.21/src/growlight.c:1288:11:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
  if((r = readlink(path,buf,sizeof(buf))) < 0 || (unsigned)r >= sizeof(buf)){;
data/growlight-1.2.21/src/growlight.c:1331:11:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
  if((r = readlink(path,buf,sizeof(buf))) < 0 || (unsigned)r >= sizeof(buf)){;
data/growlight-1.2.21/src/growlight.c:1370:11:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
  if((r = readlink(id,buf,sizeof(buf))) < 0 || (unsigned)r >= sizeof(buf)){;
data/growlight-1.2.21/src/growlight.c:2386:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  if(chmod(GROWLIGHT_SCRIPT, S_IRUSR|S_IWUSR|S_IXUSR)){
data/growlight-1.2.21/src/mounts.c:205:19:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
          if((r = readlink(dev, buf, sizeof(buf))) < 0){
data/growlight-1.2.21/src/growlight.c:116:9:  [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.
  len = vsnprintf(NULL, 0, fmt, vac);
data/growlight-1.2.21/src/growlight.c:123:5:  [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(b, len + 1, fmt, vacc);
data/growlight-1.2.21/src/growlight.c:516:5:  [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(p->name, name);
data/growlight-1.2.21/src/growlight.c:926:5:  [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(d->name,name);
data/growlight-1.2.21/src/growlight.c:1030:5:  [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(devbuf,sizeof(devbuf),DEVROOT "/%s",name);
data/growlight-1.2.21/src/growlight.c:2210:6:  [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.
  if(snprintf(buf, sizeof(buf), SYSROOT"/%s/device/rescan", d->name) >= (int)sizeof(buf)){
data/growlight-1.2.21/src/growlight.c:2363:67:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
write_postbase_hook(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
data/growlight-1.2.21/src/growlight.c:2375: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.
  if(vfprintf(fp, fmt, va) < 0){
data/growlight-1.2.21/src/growlight.h:32:53:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void diag(const char *,...) __attribute__ ((format (printf,1,2)));
data/growlight-1.2.21/src/growlight.h:33:54:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void verbf(const char *,...) __attribute__ ((format (printf,1,2)));
data/growlight-1.2.21/src/growlight.h:459:59:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void diagnostic(const char *,...) __attribute__ ((format (printf,1,2)));
data/growlight-1.2.21/src/mdadm.c:158:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(buf,d->mddev.level);
data/growlight-1.2.21/src/mounts.c:27:3:  [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(dir,path);
data/growlight-1.2.21/src/notcurses/notcurses.c:28:63:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void locked_diag(const char *fmt,...) __attribute__ ((format (printf,1,2)));
data/growlight-1.2.21/src/notcurses/notcurses.c:632:36:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
static int __attribute__ ((format (printf, 4, 5)))
data/growlight-1.2.21/src/notcurses/notcurses.c:644:36:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
static int __attribute__ ((format (printf, 2, 3)))
data/growlight-1.2.21/src/notcurses/notcurses.c:681:3:  [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(statusmsg, sizeof(statusmsg) / sizeof(*statusmsg) - 1, fmt, v);
data/growlight-1.2.21/src/notcurses/notcurses.c:843:25:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
    if(!d->mnt.count || swprintf(wbuf, wchars, L" %s%s%ls%s%ls%s%s%sat %s ",
data/growlight-1.2.21/src/notcurses/notcurses.c:851:10:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
      if(swprintf(wbuf, wchars, L" %s%s%ls%s%ls%s%s%s ",
data/growlight-1.2.21/src/notcurses/notcurses.c:859:12:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
        if(swprintf(wbuf, wchars, L" %s%s%s%s ",
data/growlight-1.2.21/src/notcurses/notcurses.c:863:11:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
          swprintf(wbuf, wchars, L"%s", d->mnttype);
data/growlight-1.2.21/src/notcurses/notcurses.c:919:10:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
      if(swprintf(wbuf, wchars - 2, L"%s %s", pre, repstr) >= wchars - 2){
data/growlight-1.2.21/src/notcurses/notcurses.c:920:12:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
        if(swprintf(wbuf, wchars - 2, L"%s", repstr) >= wchars - 2){
data/growlight-1.2.21/src/notcurses/notcurses.c:944:14:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
          if(swprintf(wbuf, wchars - 2, L"%s %s", pre, selstr) >= wchars - 2){
data/growlight-1.2.21/src/notcurses/notcurses.c:945:16:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
            if(swprintf(wbuf, wchars - 2, L"%s", selstr) >= wchars - 2){
data/growlight-1.2.21/src/notcurses/notcurses.c:963:12:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
        if(swprintf(wbuf, wchars - 2, L"%s %s", pre, z->p->name) >= wchars - 2){
data/growlight-1.2.21/src/notcurses/notcurses.c:964:14:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
          if(swprintf(wbuf, wchars - 2, L"%s", z->p->name) >= wchars - 2){
data/growlight-1.2.21/src/notcurses/notcurses.c:974:33:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
        if((!z->p->mnt.count || swprintf(wbuf, wchars - 2, L"%s at %s (%s)", z->p->mnttype, z->p->mnt.list[0], pre) >= wchars - 2)){
data/growlight-1.2.21/src/notcurses/notcurses.c:975:30:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
          if(!z->p->label || swprintf(wbuf, wchars - 2, L"%s “%s” (%s)", z->p->mnttype, z->p->label, pre) >= wchars - 2){
data/growlight-1.2.21/src/notcurses/notcurses.c:976:16:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
            if(swprintf(wbuf, wchars - 2, L"%s (%s)", z->p->mnttype, pre) >= wchars - 2){
data/growlight-1.2.21/src/notcurses/notcurses.c:5947:6:  [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.
  if(vsnprintf(buf, max, text, v) >= max){
data/growlight-1.2.21/src/popen.c:66:2:  [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(san + len,REDIRECTERR);
data/growlight-1.2.21/src/popen.c:78:11:  [4] (shell) popen:
  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.
	if((fd = popen(safecmd,"re")) == NULL){
data/growlight-1.2.21/src/popen.c:122:5:  [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.
	if(vsnprintf(buf,sizeof(buf),fmt,va) >= (int)sizeof(buf)){
data/growlight-1.2.21/src/popen.h:13:61:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
int vspopen_drain(const char *,...) __attribute__ ((format (printf,1,2)));
data/growlight-1.2.21/src/ptable.c:542:2:  [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(data.devname, name);
data/growlight-1.2.21/src/ptable.c:583:2:  [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(data.devname, name);
data/growlight-1.2.21/src/readline/readline.c:2096:7:  [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(prompt, sizeof(prompt), RL_START "\033[0;35m" RL_END
data/growlight-1.2.21/src/readline/readline.c:2103:7:  [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(prompt, sizeof(prompt), RL_START "\033[0;35m" RL_END
data/growlight-1.2.21/src/readline/readline.c:2153:3:  [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, va);
data/growlight-1.2.21/src/readline/readline.c:2183:3:  [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(stdout, text, v);
data/growlight-1.2.21/src/target.c:243:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(s + strlen(s), "/dev/%s %s %s %s 0 %u\n", fstab_name(d),
data/growlight-1.2.21/src/target.c:252:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(s + strlen(s), "/dev/%s\tnone\t\t%s\n", fstab_name(d), d->mnttype);
data/growlight-1.2.21/src/target.c:289:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(out + off, "/dev/%s\t%s\t%s\t%s\t0\t0\n", fstab_name(d),
data/growlight-1.2.21/src/target.c:313:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(out + off, "%s", PROCLINE);
data/growlight-1.2.21/src/zfs.c:155:2:  [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(d->name, name);
data/growlight-1.2.21/src/growlight.c:886:13:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
  if((buf = realpath(fn,NULL)) == NULL){
data/growlight-1.2.21/src/growlight.c:1973:16:  [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((opt = getopt_long(argc, argv, ":hit:vV", ops, &longidx)) >= 0){
data/growlight-1.2.21/src/mounts.c:291:15:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
  if((rname = realpath(targ, NULL)) == NULL){
data/growlight-1.2.21/src/target.c:97:6:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		if(realpath(path, real_target) == NULL){
data/growlight-1.2.21/src/apm.c:29: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 pname[32];		// ASCIIZ
data/growlight-1.2.21/src/apm.c:30: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 ptype[32];		// ASCIIZ
data/growlight-1.2.21/src/apm.c:70:3:  [2] (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). Risk is low because the source is a constant string.
		strcpy(apm->ptype, "Apple_Extra");
data/growlight-1.2.21/src/apm.c:76:2:  [2] (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). Risk is low because the source is a constant string.
	strcpy(apm->pname, "Extra");
data/growlight-1.2.21/src/apm.c:77:2:  [2] (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). Risk is low because the source is a constant string.
	strcpy(apm->ptype, "Apple_Free");
data/growlight-1.2.21/src/crypt.c:12: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 path[PATH_MAX + 1];
data/growlight-1.2.21/src/dmi.c:16:12:  [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((dfd = open(DMI_PATH, O_RDONLY|O_DIRECTORY)) < 0){
data/growlight-1.2.21/src/fs.c:629: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 dbuf[PATH_MAX],*mnttype;
data/growlight-1.2.21/src/gpt.c:20:23:  [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.
static const unsigned char GPT_PROTECTIVE_MBR[LBA_SIZE - MBR_OFFSET] =
data/growlight-1.2.21/src/gpt.c:34:23:  [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.
static const unsigned char gpt_signature[8] = "\x45\x46\x49\x20\x50\x41\x52\x54";
data/growlight-1.2.21/src/gpt.c:52:11:  [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 disk_guid[GUIDSIZE];
data/growlight-1.2.21/src/gpt.c:64:11:  [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 type_guid[GUIDSIZE];
data/growlight-1.2.21/src/gpt.c:65:11:  [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 part_guid[GUIDSIZE];
data/growlight-1.2.21/src/gpt.c:110: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((char *)map + mapoff, (char *)ghead + lbasize,
data/growlight-1.2.21/src/gpt.c:114: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(gh, ghead, lbasize);
data/growlight-1.2.21/src/gpt.c:249: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((char *)map + MBR_OFFSET, GPT_PROTECTIVE_MBR, MBR_SIZE);
data/growlight-1.2.21/src/gpt.c:465:11:  [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 tguid[GUIDSIZE];
data/growlight-1.2.21/src/gpt.c:466: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 cname[BUFSIZ];
data/growlight-1.2.21/src/gpt.c:543: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(gpe[z].type_guid, tguid, sizeof(tguid));
data/growlight-1.2.21/src/gpt.c:618: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(gpe[d->partdev.pnumber].name, uuid, GUIDSIZE);
data/growlight-1.2.21/src/gpt.c:682:11:  [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 tguid[GUIDSIZE];
data/growlight-1.2.21/src/gpt.c:703: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(gpe[g].type_guid, tguid, sizeof(tguid));
data/growlight-1.2.21/src/growlight.c:258: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.
      char path[PATH_MAX + 1];
data/growlight-1.2.21/src/growlight.c:291: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.
      char buf[BUFSIZ];
data/growlight-1.2.21/src/growlight.c:583: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[PATH_MAX],*dev;
data/growlight-1.2.21/src/growlight.c:777: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 buf[PATH_MAX];
data/growlight-1.2.21/src/growlight.c:851:13:  [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((dir = open(sysfs,O_RDONLY|O_CLOEXEC)) < 0){
data/growlight-1.2.21/src/growlight.c:920: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 buf[PATH_MAX] = "";
data/growlight-1.2.21/src/growlight.c:976: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 devbuf[PATH_MAX];
data/growlight-1.2.21/src/growlight.c:1275: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 buf[PATH_MAX + 1],path[PATH_MAX + 1];
data/growlight-1.2.21/src/growlight.c:1318: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 buf[PATH_MAX + 1],path[PATH_MAX + 1];
data/growlight-1.2.21/src/growlight.c:1357: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 buf[PATH_MAX + 1],id[PATH_MAX + 1];
data/growlight-1.2.21/src/growlight.c:1523:12:  [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(root,O_RDONLY|O_CLOEXEC|O_DIRECTORY)) < 0){
data/growlight-1.2.21/src/growlight.c:1549: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(&d->statq, tv, sizeof(*tv));
data/growlight-1.2.21/src/growlight.c:1615:11:  [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[BUFSIZ];
data/growlight-1.2.21/src/growlight.c:1770: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).
  if((em->mfd = open(MOUNTS, O_RDONLY|O_CLOEXEC)) < 0){
data/growlight-1.2.21/src/growlight.c:1776: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).
  if((em->sfd = open(SWAPS, O_RDONLY|O_CLOEXEC)) < 0){
data/growlight-1.2.21/src/growlight.c:1783: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).
  if((em->ffd = open(FILESYSTEMS, O_RDONLY|O_CLOEXEC)) < 0){
data/growlight-1.2.21/src/growlight.c:1958: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 buf[BUFSIZ];
data/growlight-1.2.21/src/growlight.c:2153: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 buf[PATH_MAX];
data/growlight-1.2.21/src/growlight.c:2170: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 buf[PATH_MAX];
data/growlight-1.2.21/src/growlight.c:2187: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 buf[PATH_MAX];
data/growlight-1.2.21/src/growlight.c:2207: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 buf[PATH_MAX];
data/growlight-1.2.21/src/growlight.c:2370:12:  [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(GROWLIGHT_SCRIPT, "w")) == NULL){
data/growlight-1.2.21/src/growlight.h:118: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 name[NAME_MAX + 1];	// Entry in /dev or /sys/block
data/growlight-1.2.21/src/growlight.h:441:2:  [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(str,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",
data/growlight-1.2.21/src/growlight.h:451:2:  [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(str,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",
data/growlight-1.2.21/src/health.c:15: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 cmd[PATH_MAX];
data/growlight-1.2.21/src/libblkid.c:59: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 buf[PATH_MAX], *mnttype, *uuid, *label, *partuuid;
data/growlight-1.2.21/src/mbr.c:26:11:  [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 mbr[MBR_SIZE];
data/growlight-1.2.21/src/mbr.c:55: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.
	static char buf[MBR_SIZE];
data/growlight-1.2.21/src/mbr.c:56: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 dbuf[PATH_MAX];
data/growlight-1.2.21/src/mbr.c:90: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((char *)map + wipe, buf, wipeend - wipe);
data/growlight-1.2.21/src/mdadm.c:21: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 buf[30];
data/growlight-1.2.21/src/mdadm.c:69: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 rbuf[NAME_MAX],lbuf[NAME_MAX],*c;
data/growlight-1.2.21/src/mdadm.c:157:3:  [2] (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). Risk is low because the source is a constant string.
		strcpy(buf,"md");
data/growlight-1.2.21/src/mdadm.c:188: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 buf[BUFSIZ] = "";
data/growlight-1.2.21/src/mmap.c:48: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((char *)map + *len, buf, r);
data/growlight-1.2.21/src/mmap.c:108:13:  [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((tfd = open(fn, O_RDONLY|O_NONBLOCK|O_CLOEXEC)) < 0){
data/growlight-1.2.21/src/mounts.c:23: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 dir[PATH_MAX + 1];
data/growlight-1.2.21/src/mounts.c:160: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[PATH_MAX + 1];
data/growlight-1.2.21/src/mounts.c:266: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[PATH_MAX + 1];
data/growlight-1.2.21/src/msdos.c:38:11:  [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 disksig[DISKSIG_LEN];
data/growlight-1.2.21/src/msdos.c:191: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.
	static unsigned char zmpe[16] = "";
data/growlight-1.2.21/src/notcurses/notcurses.c:460:8:  [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.
static char statusmsg[BUFSIZ];
data/growlight-1.2.21/src/notcurses/notcurses.c:661: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 buf[BUFSIZ];
data/growlight-1.2.21/src/notcurses/notcurses.c:819: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 pre[BPREFIXSTRLEN + 1];
data/growlight-1.2.21/src/notcurses/notcurses.c:821:3:  [2] (buffer) wchar_t:
  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.
  wchar_t wbuf[ex - sx + 2];
data/growlight-1.2.21/src/notcurses/notcurses.c:825: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 buf[ex - sx + 2];
data/growlight-1.2.21/src/notcurses/notcurses.c:903:5:  [2] (buffer) wchar_t:
  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.
    wchar_t rep[2] = {L'\0', L'\0'};
data/growlight-1.2.21/src/notcurses/notcurses.c:1038: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 buf[BPREFIXSTRLEN + 1];
data/growlight-1.2.21/src/notcurses/notcurses.c:1039: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 rolestr[12]; // taken from %-11.11s below
data/growlight-1.2.21/src/notcurses/notcurses.c:1305: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.
      char qbuf[BPREFIXSTRLEN + 1];
data/growlight-1.2.21/src/notcurses/notcurses.c:1394: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.
      char buf[PREFIXSTRLEN + 1], dbuf[PREFIXSTRLEN + 1];
data/growlight-1.2.21/src/notcurses/notcurses.c:1406: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.
      char dbuf[PREFIXSTRLEN + 1];
data/growlight-1.2.21/src/notcurses/notcurses.c:2239:8:  [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.
static char forming_targ[PATH_MAX + 1];
data/growlight-1.2.21/src/notcurses/notcurses.c:2995: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[BPREFIXSTRLEN + 1];
data/growlight-1.2.21/src/notcurses/notcurses.c:3020: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 buf[BPREFIXSTRLEN + 1];
data/growlight-1.2.21/src/notcurses/notcurses.c:3166: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 ubuf[BPREFIXSTRLEN + 1];
data/growlight-1.2.21/src/notcurses/notcurses.c:3177: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 align[BPREFIXSTRLEN + 1];
data/growlight-1.2.21/src/notcurses/notcurses.c:3178: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 zbuf[BPREFIXSTRLEN + 1];
data/growlight-1.2.21/src/notcurses/notcurses.c:3438: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 *c, tbuf[x];
data/growlight-1.2.21/src/notcurses/notcurses.c:3554: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 buf[PREFIXSTRLEN + 1], b[256];
data/growlight-1.2.21/src/notcurses/notcurses.c:3593: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 buf[PREFIXSTRLEN + 1], b[256]; // FIXME uhhhh
data/growlight-1.2.21/src/notcurses/notui-aggregate.c:118: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 s[BPREFIXSTRLEN],*uni;
data/growlight-1.2.21/src/nvme.c:34: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                    sn[20];
data/growlight-1.2.21/src/nvme.c:35: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                    mn[40];
data/growlight-1.2.21/src/nvme.c:36: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                    fr[8];
data/growlight-1.2.21/src/nvme.c:90: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                    subnqn[256];
data/growlight-1.2.21/src/popen.c:57: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(san + len,cmd,conv);
data/growlight-1.2.21/src/popen.c:71: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 buf[128],*safecmd;
data/growlight-1.2.21/src/popen.c:99: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 buf[BUFSIZ];
data/growlight-1.2.21/src/popen.c:118: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 buf[BUFSIZ];
data/growlight-1.2.21/src/ptypes.c:389:4:  [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(guid,pt->gpt_guid,GUIDSIZE);
data/growlight-1.2.21/src/ptypes.c:443: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 tstr[GUIDSTRLEN + 1];
data/growlight-1.2.21/src/readline/readline.c:69: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 path[PATH_MAX + 1];
data/growlight-1.2.21/src/readline/readline.c:81: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 buf[BUFSIZ], *e;
data/growlight-1.2.21/src/readline/readline.c:111: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 buf[BUFSIZ], *e;
data/growlight-1.2.21/src/readline/readline.c:159: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 sfs[NAME_MAX], label[NAME_MAX];
data/growlight-1.2.21/src/readline/readline.c:174: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 sdev[NAME_MAX];
data/growlight-1.2.21/src/readline/readline.c:185: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 sdev[NAME_MAX];
data/growlight-1.2.21/src/readline/readline.c:196: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 stbl[NAME_MAX];
data/growlight-1.2.21/src/readline/readline.c:207: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 spath[PATH_MAX];
data/growlight-1.2.21/src/readline/readline.c:218: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 spath[PATH_MAX], sops[PATH_MAX];
data/growlight-1.2.21/src/readline/readline.c:245: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 buf[PREFIXSTRLEN + 1];
data/growlight-1.2.21/src/readline/readline.c:264: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 buf[PREFIXSTRLEN + 1];
data/growlight-1.2.21/src/readline/readline.c:313: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 buf[BPREFIXSTRLEN + 1];
data/growlight-1.2.21/src/readline/readline.c:332: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 buf[PREFIXSTRLEN + 1];
data/growlight-1.2.21/src/readline/readline.c:385: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 buf[PREFIXSTRLEN + 1];
data/growlight-1.2.21/src/readline/readline.c:518: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 buf[PREFIXSTRLEN + 1];
data/growlight-1.2.21/src/readline/readline.c:542: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 buf[PREFIXSTRLEN + 1];
data/growlight-1.2.21/src/readline/readline.c:593: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 buf[PREFIXSTRLEN + 1];
data/growlight-1.2.21/src/readline/readline.c:673: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 buf[PREFIXSTRLEN + 1];
data/growlight-1.2.21/src/readline/readline.c:959: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 buf[BUFSIZ];
data/growlight-1.2.21/src/readline/readline.c:1126: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 gstr[GUIDSTRLEN + 1];
data/growlight-1.2.21/src/readline/readline.c:1426: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 buf[PREFIXSTRLEN + 1];
data/growlight-1.2.21/src/readline/readline.c:1844: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 targ[PATH_MAX];
data/growlight-1.2.21/src/readline/readline.c:1911: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 tbuf[26]; // see ctime_r(3)
data/growlight-1.2.21/src/readline/readline.c:2056: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 prompt[80] = RL_START "\033[0;35m" RL_END
data/growlight-1.2.21/src/readline/readline.c:2134: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 fxnbuf[NAME_MAX];
data/growlight-1.2.21/src/sg.c:96:11:  [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 cdb[SG_ATA_16_LEN];
data/growlight-1.2.21/src/sg.c:99: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 sb[32];
data/growlight-1.2.21/src/smart.c:15: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 path[PATH_MAX];
data/growlight-1.2.21/src/stats.c:33:11:  [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(path, O_CLOEXEC | O_RDONLY)) < 0){
data/growlight-1.2.21/src/stats.c:88: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(&tmp[devcount], dstat, sizeof(*dstat));
data/growlight-1.2.21/src/stats.h:28: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 name[NAME_MAX + 1];
data/growlight-1.2.21/src/swap.c:32: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 fn[PATH_MAX], *mt;
data/growlight-1.2.21/src/swap.c:54: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 fn[PATH_MAX];
data/growlight-1.2.21/src/swap.c:67: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 buf[BUFSIZ];
data/growlight-1.2.21/src/swap.c:71:12:  [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(name, "re")) == NULL){
data/growlight-1.2.21/src/sysfs.c:18: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 buf[512]; // FIXME
data/growlight-1.2.21/src/sysfs.c:50: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 buf[512]; // FIXME
data/growlight-1.2.21/src/sysfs.c:71: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).
	*devno = MKDEV(atoi(buf),atoi(colon + 1));
data/growlight-1.2.21/src/sysfs.c:71:27:  [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).
	*devno = MKDEV(atoi(buf),atoi(colon + 1));
data/growlight-1.2.21/src/sysfs.c:86: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 buf[512]; // FIXME
data/growlight-1.2.21/src/sysfs.c:111: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 *end,buf[512]; // FIXME
data/growlight-1.2.21/src/sysfs.c:140: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 *end,buf[512]; // FIXME
data/growlight-1.2.21/src/sysfs.c:178:11:  [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(name,O_WRONLY|O_NONBLOCK|O_CLOEXEC)) < 0){
data/growlight-1.2.21/src/target.c:18: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 real_target[PATH_MAX + 1]; // Only used when we set or unset the target
data/growlight-1.2.21/src/target.c:116: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 pathext[PATH_MAX + 1], *fstab, *ftargs;
data/growlight-1.2.21/src/target.c:327: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((targfd = open(growlight_target, O_DIRECTORY|O_RDONLY|O_CLOEXEC)) < 0){
data/growlight-1.2.21/src/zfs.c:64: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 size[10], guid[21], ashift[5], health[20];
data/growlight-1.2.21/src/zfs.c:175: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 sbuf[BUFSIZ], *mnttype, *label;
data/growlight-1.2.21/src/zfs.c:342: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 buf[BUFSIZ];
data/growlight-1.2.21/src/fs.c:681: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).
		if(len - idx >= (off_t)strlen("nodev")){
data/growlight-1.2.21/src/fs.c:682:33:  [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(strncmp(map + idx,"nodev",strlen("nodev")) == 0){
data/growlight-1.2.21/src/fs.c:683: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).
				idx += strlen("nodev");
data/growlight-1.2.21/src/gpt.c:326:8:  [1] (buffer) wcslen:
  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 = wcslen(name) * sizeof(*name);
data/growlight-1.2.21/src/growlight.c:243:20:  [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_t len = strlen(module) + 7; // FIXME sketchy
data/growlight-1.2.21/src/growlight.c:498: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(name) >= sizeof(p->name)){
data/growlight-1.2.21/src/growlight.c:782:23:  [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).
        cur = busid + strlen("/sys/devices/pci");
data/growlight-1.2.21/src/growlight.c:1146: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(name) >= sizeof(d->name)){
data/growlight-1.2.21/src/growlight.c:1619:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          while((s = read(em->ifd,buf,sizeof(buf))) > 0){
data/growlight-1.2.21/src/growlight.c:1686:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          if(read(em->stats_timerfd, &dontcare, sizeof(dontcare)) < 0){
data/growlight-1.2.21/src/growlight.c:2319:33:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  strcmp(d->name, dd->name) ? ++mismatch : ++match;
data/growlight-1.2.21/src/growlight.c:2322:38:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      strcmp(d->uuid, dd->uuid)) ? ++mismatch : ++match;
data/growlight-1.2.21/src/growlight.c:2325:40:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      strcmp(d->label, dd->label)) ? ++mismatch : ++match;
data/growlight-1.2.21/src/growlight.c:2326:11:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  return (mismatch && !match) ? 0 : (mismatch && match) ? -1 : 1;
data/growlight-1.2.21/src/growlight.c:2326:38:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  return (mismatch && !match) ? 0 : (mismatch && match) ? -1 : 1;
data/growlight-1.2.21/src/growlight.h:486:46:  [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(strncmp(d->mnt.list[z],growlight_target,strlen(growlight_target)) == 0){
data/growlight-1.2.21/src/libblkid.c:186:38:  [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).
				pname = malloc(sizeof(*pname) * (strlen(val) + 1));
data/growlight-1.2.21/src/libblkid.c:188: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).
				mbsnrtowcs(pname, &val, strlen(val) + 1, strlen(val) + 1, &ps);
data/growlight-1.2.21/src/libblkid.c:188:46:  [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).
				mbsnrtowcs(pname, &val, strlen(val) + 1, strlen(val) + 1, &ps);
data/growlight-1.2.21/src/mbr.c:35:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if((r = read(fd, mbr, sizeof(mbr))) < 0){
data/growlight-1.2.21/src/mdadm.c:202: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).
		pos += strlen(buf + pos);
data/growlight-1.2.21/src/mmap.c:32:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while((r = read(fd, buf, sizeof(buf))) > 0){
data/growlight-1.2.21/src/mounts.c:26: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).
  assert(strlen(path) < sizeof(dir));
data/growlight-1.2.21/src/mounts.c:181: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(strncmp(mnt, growlight_target, strlen(growlight_target)) == 0){
data/growlight-1.2.21/src/mounts.c:285:40:  [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(strncmp(targ, growlight_target, strlen(growlight_target)) == 0){
data/growlight-1.2.21/src/mounts.c:301:41:  [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(strncmp(rname, growlight_target, strlen(growlight_target)) == 0){
data/growlight-1.2.21/src/notcurses/notcurses.c:763:38:  [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).
    const int crightlen = ps->bstr ? strlen(ps->bstr) : 0;
data/growlight-1.2.21/src/notcurses/notcurses.c:869:50:  [1] (buffer) wcslen:
  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).
    ncplane_putwstr_yx(n, y, sx + (ex - sx + 1 - wcslen(wbuf)) / 2, wbuf);
data/growlight-1.2.21/src/notcurses/notcurses.c:887:49:  [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).
    ncplane_putstr_yx(n, y, sx + (ex - sx + 1 - strlen(buf)) / 2, buf);
data/growlight-1.2.21/src/notcurses/notcurses.c:1004:65:  [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).
        cmvwprintw(n, y - 1, och, "⇗⇨⇨⇨%.*s", (int)(ex - (off + strlen(selstr) + 4)), selstr);
data/growlight-1.2.21/src/notcurses/notcurses.c:1006:40:  [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).
        cmvwprintw(n, y - 1, off - 4 - strlen(selstr), "%s⇦⇦⇦⇖", selstr);
data/growlight-1.2.21/src/notcurses/notcurses.c:1011:11:  [1] (buffer) wcslen:
  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).
    while(wcslen(wbuf) && wcslen(wbuf) + 2 > (off - och + 1)){
data/growlight-1.2.21/src/notcurses/notcurses.c:1011:27:  [1] (buffer) wcslen:
  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).
    while(wcslen(wbuf) && wcslen(wbuf) + 2 > (off - och + 1)){
data/growlight-1.2.21/src/notcurses/notcurses.c:1020:8:  [1] (buffer) wcslen:
  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(wcslen(wbuf)){
data/growlight-1.2.21/src/notcurses/notcurses.c:1021:47:  [1] (buffer) wcslen:
  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_t start = och + ((off - och + 1) - wcslen(wbuf)) / 2;
data/growlight-1.2.21/src/notcurses/notcurses.c:1026:40:  [1] (buffer) wcslen:
  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).
      ncplane_putwstr_yx(n, y, start + wcslen(wbuf), L" ");
data/growlight-1.2.21/src/notcurses/notcurses.c:1050:3:  [1] (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). Risk is low because the source is a constant character.
  strcpy(rolestr, "");
data/growlight-1.2.21/src/notcurses/notcurses.c:1065:9:  [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(rolestr, "solidstate", sizeof(rolestr));
data/growlight-1.2.21/src/notcurses/notcurses.c:1075:11:  [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(rolestr, "ferromag", sizeof(rolestr));
data/growlight-1.2.21/src/notcurses/notcurses.c:1079:9:  [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(rolestr, "optical", sizeof(rolestr));
data/growlight-1.2.21/src/notcurses/notcurses.c:1082:9:  [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(rolestr, "tape", sizeof(rolestr));
data/growlight-1.2.21/src/notcurses/notcurses.c:1087:7:  [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(rolestr, "virtual", sizeof(rolestr));
data/growlight-1.2.21/src/notcurses/notcurses.c:1115:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(rolestr, bo->d->mddev.level, sizeof(rolestr) - 1);
data/growlight-1.2.21/src/notcurses/notcurses.c:1152: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(rolestr, "dm", sizeof(rolestr));
data/growlight-1.2.21/src/notcurses/notcurses.c:1183: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(rolestr, "zpool", sizeof(rolestr));
data/growlight-1.2.21/src/notcurses/notcurses.c:1247: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(rolestr)){
data/growlight-1.2.21/src/notcurses/notcurses.c:1549:55:  [1] (buffer) wcslen:
  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(new_display_panel(notcurses_stdplane(NC), ps, 3, wcslen(msg) + 4, NULL,
data/growlight-1.2.21/src/notcurses/notcurses.c:1855: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(opstrs[x].option) > longop){
data/growlight-1.2.21/src/notcurses/notcurses.c:1856:16:  [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).
      longop = strlen(opstrs[x].option);
data/growlight-1.2.21/src/notcurses/notcurses.c:1858: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(opstrs[x].desc) > longdesc){
data/growlight-1.2.21/src/notcurses/notcurses.c:1859:18:  [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).
      longdesc = strlen(opstrs[x].desc);
data/growlight-1.2.21/src/notcurses/notcurses.c:1864:18:  [1] (buffer) wcslen:
  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(cols < (int)wcslen(ESCSTR) + 2){
data/growlight-1.2.21/src/notcurses/notcurses.c:1865:12:  [1] (buffer) wcslen:
  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).
    cols = wcslen(ESCSTR) + 2;
data/growlight-1.2.21/src/notcurses/notcurses.c:1901: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).
  cmvwprintw(fs->p, 0, cols - strlen(fs->boxstr) - 4, "%s", fs->boxstr);
data/growlight-1.2.21/src/notcurses/notcurses.c:1902:46:  [1] (buffer) wcslen:
  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).
  ncplane_putwstr_yx(fs->p, rows - 1, cols - wcslen(ESCSTR) - 1, ESCSTR);
data/growlight-1.2.21/src/notcurses/notcurses.c:1934: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(opstrs[x].option) > longop){
data/growlight-1.2.21/src/notcurses/notcurses.c:1935:16:  [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).
      longop = strlen(opstrs[x].option);
data/growlight-1.2.21/src/notcurses/notcurses.c:1937: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(opstrs[x].desc) > longdesc){
data/growlight-1.2.21/src/notcurses/notcurses.c:1938:18:  [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).
      longdesc = strlen(opstrs[x].desc);
data/growlight-1.2.21/src/notcurses/notcurses.c:1943:18:  [1] (buffer) wcslen:
  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(cols < (int)wcslen(ESCSTR) + 2){
data/growlight-1.2.21/src/notcurses/notcurses.c:1944:12:  [1] (buffer) wcslen:
  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).
    cols = wcslen(ESCSTR) + 2;
data/growlight-1.2.21/src/notcurses/notcurses.c:1982: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).
  cmvwprintw(fsw, 0, cols - strlen(fs->boxstr) - 2, "%s", fs->boxstr);
data/growlight-1.2.21/src/notcurses/notcurses.c:1985:45:  [1] (buffer) wcslen:
  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).
  ncplane_putwstr_yx(fsw, nrows - 1, cols - wcslen(ESCSTR) - 1, ESCSTR);
data/growlight-1.2.21/src/notcurses/notcurses.c:2017: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(opstrs[x].option) > longop){
data/growlight-1.2.21/src/notcurses/notcurses.c:2018:16:  [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).
      longop = strlen(opstrs[x].option);
data/growlight-1.2.21/src/notcurses/notcurses.c:2020: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(opstrs[x].desc) > longdesc){
data/growlight-1.2.21/src/notcurses/notcurses.c:2021:18:  [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).
      longdesc = strlen(opstrs[x].desc);
data/growlight-1.2.21/src/notcurses/notcurses.c:2057: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).
  cmvwprintw(fs->p, 0, cols - strlen(fs->boxstr), "%s", fs->boxstr);
data/growlight-1.2.21/src/notcurses/notcurses.c:2058:46:  [1] (buffer) wcslen:
  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).
  ncplane_putwstr_yx(fs->p, rows - 1, cols - wcslen(L"⎋esc returns"), L"⎋esc returns");
data/growlight-1.2.21/src/notcurses/notcurses.c:2103:16:  [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).
  fs->longop = strlen(str);
data/growlight-1.2.21/src/notcurses/notcurses.c:2118: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).
  cmvwprintw(fs->p, 0, cols - strlen(fs->boxstr), "%s", fs->boxstr);
data/growlight-1.2.21/src/notcurses/notcurses.c:2119:39:  [1] (buffer) wcslen:
  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).
  ncplane_putwstr_yx(fs->p, 2, cols - wcslen(L"⎋esc returns"), L"⎋esc returns");
data/growlight-1.2.21/src/notcurses/notcurses.c:3275:8:  [1] (buffer) wcslen:
  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(wcslen(*h) > max){
data/growlight-1.2.21/src/notcurses/notcurses.c:3276:13:  [1] (buffer) wcslen:
  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).
      max = wcslen(*h);
data/growlight-1.2.21/src/notcurses/notcurses.c:3452:41:  [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).
    tb = sizeof(tbuf) / sizeof(*tbuf) - strlen(tbuf);
data/growlight-1.2.21/src/notcurses/notcurses.c:3453: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).
    p = snprintf(tbuf + strlen(tbuf), tb, " %-*.*s",
data/growlight-1.2.21/src/notcurses/notcurses.c:3564:71:  [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(growlight_target && !strncmp(d->mnt.list[z], growlight_target, strlen(growlight_target))){
data/growlight-1.2.21/src/notcurses/notcurses.c:3602:50:  [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(strncmp(d->mnt.list[z], growlight_target, strlen(growlight_target))){
data/growlight-1.2.21/src/notcurses/notcurses.c:4827: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).
  while( (m = mbrlen(buf, strlen(buf), &mb)) ){
data/growlight-1.2.21/src/notcurses/notcurses.c:4886:39:  [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((tmp = realloc(fs->inp.buffer, strlen(fs->inp.buffer) + 2)) == NULL){
data/growlight-1.2.21/src/notcurses/notcurses.c:4892:20:  [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).
    fs->inp.buffer[strlen(fs->inp.buffer) + 1] = '\0';
data/growlight-1.2.21/src/notcurses/notcurses.c:4893:20:  [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).
    fs->inp.buffer[strlen(fs->inp.buffer)] = (unsigned char)ch;
data/growlight-1.2.21/src/notcurses/notcurses.c:5906:16:  [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).
  fs->longop = strlen(str);
data/growlight-1.2.21/src/notcurses/notcurses.c:5915:16:  [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).
  lineguess += strlen(text) / (x - 2) + 1;
data/growlight-1.2.21/src/notcurses/notui-aggregate.c:123: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).
	sz = (sizeof(s) / sizeof(*s)) + strlen(desc) + 5; // '(' 'B' ')' ' ' '\0'
data/growlight-1.2.21/src/notcurses/notui-aggregate.c:241:3:  [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(fauxd.name,"missing",sizeof(fauxd.name));
data/growlight-1.2.21/src/popen.c:22: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).
	left = strlen(cmd) + 1;
data/growlight-1.2.21/src/popen.c:61:50:  [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((tmp = realloc(san,sizeof(*san) * (len + 1 + strlen(REDIRECTERR)))) == NULL){
data/growlight-1.2.21/src/ptable.c:530:5:  [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(name) >= sizeof(data.devname)){
data/growlight-1.2.21/src/ptable.c:571:5:  [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(name) >= sizeof(data.devname)){
data/growlight-1.2.21/src/readline/readline.c:1693: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(line);
data/growlight-1.2.21/src/readline/readline.c:1916: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).
      tbuf[strlen(tbuf) - 1] = ' '; // kill newline
data/growlight-1.2.21/src/readline/readline.c:2128: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(text);
data/growlight-1.2.21/src/stats.c:52:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	}while((r = read(fd, buf + *buflen, (alloclen - 1) - *buflen)) > 0);
data/growlight-1.2.21/src/sysfs.c:25:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if((r = read(fd,buf,sizeof(buf))) <= 0){
data/growlight-1.2.21/src/sysfs.c:56:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if((r = read(fd,buf,sizeof(buf))) <= 0){
data/growlight-1.2.21/src/sysfs.c:93:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if((r = read(fd,buf,sizeof(buf))) <= 0){
data/growlight-1.2.21/src/sysfs.c:118:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if((r = read(fd,buf,sizeof(buf))) <= 0){
data/growlight-1.2.21/src/sysfs.c:148:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if((r = read(fd,buf,sizeof(buf))) <= 0){
data/growlight-1.2.21/src/sysfs.c:181:23:  [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((w = write(fd,str,strlen(str))) <= 0 || w < (int)strlen(str)){
data/growlight-1.2.21/src/sysfs.c:181:54:  [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((w = write(fd,str,strlen(str))) <= 0 || w < (int)strlen(str)){
data/growlight-1.2.21/src/target.c:40: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).
		if((tmp = realloc(out, sizeof(*out) * (strlen(c->driver) + off + 1))) == NULL){
data/growlight-1.2.21/src/target.c:44:23:  [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).
		snprintf(out + off, strlen(c->driver) + 1, "%s\n", c->driver);
data/growlight-1.2.21/src/target.c:45: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).
		off += strlen(c->driver) + 1;
data/growlight-1.2.21/src/target.c:159:55:  [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((r = fprintf(fp, "%s", fstab)) < 0 || (size_t)r < strlen(fstab)){
data/growlight-1.2.21/src/target.c:187:56:  [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((r = fprintf(fp, "%s", ftargs)) < 0 || (size_t)r < strlen(ftargs)){
data/growlight-1.2.21/src/target.c:227:48:  [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(strncmp(d->mnt.list[z], growlight_target, strlen(growlight_target))){
data/growlight-1.2.21/src/target.c:234: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).
			mnt = d->mnt.list[z] + strlen(growlight_target);
data/growlight-1.2.21/src/target.c:239:38:  [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((tmp = realloc(s, sizeof(*s) * (strlen(s) + r + 1))) == NULL){
data/growlight-1.2.21/src/target.c:243: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).
		sprintf(s + strlen(s), "/dev/%s %s %s %s 0 %u\n", fstab_name(d),
data/growlight-1.2.21/src/target.c:248:38:  [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((tmp = realloc(s, sizeof(*s) * (strlen(s) + r + 1))) == NULL){
data/growlight-1.2.21/src/target.c:252: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).
		sprintf(s + strlen(s), "/dev/%s\tnone\t\t%s\n", fstab_name(d), d->mnttype);
data/growlight-1.2.21/src/target.c:297: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).
				off += strlen(out + off);
data/growlight-1.2.21/src/target.c:304: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).
				off += strlen(out + off);
data/growlight-1.2.21/src/target.c:309:47:  [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((tmp = realloc(out, sizeof(*out) * (off + strlen(PROCLINE) + 1))) == NULL){
data/growlight-1.2.21/src/zfs.c:81:5:  [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(name) >= sizeof(d->name)){
data/growlight-1.2.21/src/zfs.c:117:3:  [1] (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). Risk is low because the source is a constant character.
		strcpy(ashift, "0");
data/growlight-1.2.21/src/zfs.c:118:3:  [1] (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). Risk is low because the source is a constant character.
		strcpy(size, "0");
data/growlight-1.2.21/src/zfs.c:354: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).
		pos += strlen(buf + pos);

ANALYSIS SUMMARY:

Hits = 318
Lines analyzed = 19662 in approximately 0.52 seconds (37941 lines/second)
Physical Source Lines of Code (SLOC) = 17093
Hits@level = [0] 178 [1] 119 [2] 144 [3]   4 [4]  46 [5]   5
Hits@level+ = [0+] 496 [1+] 318 [2+] 199 [3+]  55 [4+]  51 [5+]   5
Hits/KSLOC@level+ = [0+] 29.0177 [1+] 18.6041 [2+] 11.6422 [3+] 3.21769 [4+] 2.98368 [5+] 0.292517
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.