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/jwm-2.3.7/src/border.c
Examining data/jwm-2.3.7/src/swallow.h
Examining data/jwm-2.3.7/src/font.h
Examining data/jwm-2.3.7/src/menu.h
Examining data/jwm-2.3.7/src/swallow.c
Examining data/jwm-2.3.7/src/root.c
Examining data/jwm-2.3.7/src/group.h
Examining data/jwm-2.3.7/src/settings.h
Examining data/jwm-2.3.7/src/outline.c
Examining data/jwm-2.3.7/src/command.h
Examining data/jwm-2.3.7/src/dock.h
Examining data/jwm-2.3.7/src/clientlist.c
Examining data/jwm-2.3.7/src/gradient.c
Examining data/jwm-2.3.7/src/move.h
Examining data/jwm-2.3.7/src/help.h
Examining data/jwm-2.3.7/src/background.c
Examining data/jwm-2.3.7/src/move.c
Examining data/jwm-2.3.7/src/button.c
Examining data/jwm-2.3.7/src/match.c
Examining data/jwm-2.3.7/src/confirm.c
Examining data/jwm-2.3.7/src/debug.h
Examining data/jwm-2.3.7/src/taskbar.h
Examining data/jwm-2.3.7/src/dock.c
Examining data/jwm-2.3.7/src/timing.c
Examining data/jwm-2.3.7/src/main.c
Examining data/jwm-2.3.7/src/font.c
Examining data/jwm-2.3.7/src/jxlib.h
Examining data/jwm-2.3.7/src/traybutton.h
Examining data/jwm-2.3.7/src/group.c
Examining data/jwm-2.3.7/src/spacer.c
Examining data/jwm-2.3.7/src/help.c
Examining data/jwm-2.3.7/src/status.c
Examining data/jwm-2.3.7/src/debug.c
Examining data/jwm-2.3.7/src/lex.c
Examining data/jwm-2.3.7/src/key.h
Examining data/jwm-2.3.7/src/background.h
Examining data/jwm-2.3.7/src/resize.h
Examining data/jwm-2.3.7/src/clock.c
Examining data/jwm-2.3.7/src/outline.h
Examining data/jwm-2.3.7/src/action.c
Examining data/jwm-2.3.7/src/winmenu.c
Examining data/jwm-2.3.7/src/hint.h
Examining data/jwm-2.3.7/src/image.h
Examining data/jwm-2.3.7/src/popup.c
Examining data/jwm-2.3.7/src/settings.c
Examining data/jwm-2.3.7/src/client.c
Examining data/jwm-2.3.7/src/resize.c
Examining data/jwm-2.3.7/src/jwm.h
Examining data/jwm-2.3.7/src/confirm.h
Examining data/jwm-2.3.7/src/event.c
Examining data/jwm-2.3.7/src/screen.c
Examining data/jwm-2.3.7/src/tray.c
Examining data/jwm-2.3.7/src/color.c
Examining data/jwm-2.3.7/src/pager.h
Examining data/jwm-2.3.7/src/taskbar.c
Examining data/jwm-2.3.7/src/hint.c
Examining data/jwm-2.3.7/src/tray.h
Examining data/jwm-2.3.7/src/icon.c
Examining data/jwm-2.3.7/src/border.h
Examining data/jwm-2.3.7/src/render.h
Examining data/jwm-2.3.7/src/event.h
Examining data/jwm-2.3.7/src/key.c
Examining data/jwm-2.3.7/src/cursor.c
Examining data/jwm-2.3.7/src/action.h
Examining data/jwm-2.3.7/src/grab.c
Examining data/jwm-2.3.7/src/misc.c
Examining data/jwm-2.3.7/src/main.h
Examining data/jwm-2.3.7/src/command.c
Examining data/jwm-2.3.7/src/clientlist.h
Examining data/jwm-2.3.7/src/parse.c
Examining data/jwm-2.3.7/src/client.h
Examining data/jwm-2.3.7/src/screen.h
Examining data/jwm-2.3.7/src/timing.h
Examining data/jwm-2.3.7/src/icon.h
Examining data/jwm-2.3.7/src/menu.c
Examining data/jwm-2.3.7/src/root.h
Examining data/jwm-2.3.7/src/grab.h
Examining data/jwm-2.3.7/src/render.c
Examining data/jwm-2.3.7/src/winmenu.h
Examining data/jwm-2.3.7/src/cursor.h
Examining data/jwm-2.3.7/src/button.h
Examining data/jwm-2.3.7/src/popup.h
Examining data/jwm-2.3.7/src/desktop.h
Examining data/jwm-2.3.7/src/status.h
Examining data/jwm-2.3.7/src/desktop.c
Examining data/jwm-2.3.7/src/match.h
Examining data/jwm-2.3.7/src/traybutton.c
Examining data/jwm-2.3.7/src/error.c
Examining data/jwm-2.3.7/src/gradient.h
Examining data/jwm-2.3.7/src/image.c
Examining data/jwm-2.3.7/src/place.c
Examining data/jwm-2.3.7/src/lex.h
Examining data/jwm-2.3.7/src/clock.h
Examining data/jwm-2.3.7/src/place.h
Examining data/jwm-2.3.7/src/misc.h
Examining data/jwm-2.3.7/src/spacer.h
Examining data/jwm-2.3.7/src/pager.c
Examining data/jwm-2.3.7/src/error.h
Examining data/jwm-2.3.7/src/color.h
Examining data/jwm-2.3.7/src/parse.h

FINAL RESULTS:

data/jwm-2.3.7/src/command.c:137:7:  [4] (shell) execl:
  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.
      execl(SHELL_NAME, SHELL_NAME, "-c", command, NULL);
data/jwm-2.3.7/src/debug.c:24:4:  [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, str, ap);
data/jwm-2.3.7/src/dock.c:87: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(selectionName, sizeof(BASE_SELECTION_NAME),
data/jwm-2.3.7/src/error.c:23:4:  [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, str, ap);
data/jwm-2.3.7/src/error.c:55:4:  [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, str, ap);
data/jwm-2.3.7/src/main.c:220:7:  [4] (shell) execl:
  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.
      execl(SHELL_NAME, SHELL_NAME, "-c", exitCommand, NULL);
data/jwm-2.3.7/src/parse.c:1945:9:  [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.
   fp = popen(path, "r");
data/jwm-2.3.7/src/parse.c:2050: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(msg, msg_len, FILE_MESSAGE, tp->fileName, tp->line);
data/jwm-2.3.7/src/main.c:122:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
   temp = getenv("HOME");
data/jwm-2.3.7/src/misc.c:164:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
         value = getenv(name);
data/jwm-2.3.7/src/timing.c:66:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      const char *oldTZ = getenv("TZ");
data/jwm-2.3.7/src/background.c:246:7:  [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(temp, bp->value, len);
data/jwm-2.3.7/src/background.c:254:7:  [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(temp, sep + 1, len);
data/jwm-2.3.7/src/border.c:21: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 *buttonNames[BI_COUNT];
data/jwm-2.3.7/src/debug.c:45:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *checkpointFile[CHECKPOINT_LIST_SIZE];
data/jwm-2.3.7/src/desktop.c:228:7:  [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(&item->name[1], desktopNames[x], len);
data/jwm-2.3.7/src/desktop.c:257:7:  [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(&item->name[1], desktopNames[x], len);
data/jwm-2.3.7/src/error.c:69: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 buffer[64];
data/jwm-2.3.7/src/error.c:70: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 code[32];
data/jwm-2.3.7/src/font.c:44: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 *fontNames[FONT_COUNT];
data/jwm-2.3.7/src/hint.c:232:7:  [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(&data[count], name, len + 1);
data/jwm-2.3.7/src/hint.c:736:7:  [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(np->name, name, count);
data/jwm-2.3.7/src/hint.c:761:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(np->name, tlist[0], len);
data/jwm-2.3.7/src/hint.c:774:10:  [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(np->name, temp, len);
data/jwm-2.3.7/src/icon.c:181: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(ip->path, path, length + 1);
data/jwm-2.3.7/src/icon.c:352: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(&temp[0], path, pathLength);
data/jwm-2.3.7/src/icon.c:353: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(&temp[pathLength], name, nameLength + 1);
data/jwm-2.3.7/src/icon.c:378:10:  [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(&temp[pathLength + nameLength], ICON_EXTENSIONS[i], len + 1);
data/jwm-2.3.7/src/image.c:190:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char header[8];
data/jwm-2.3.7/src/image.c:206:9:  [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).
   fd = fopen(fileName, "rb");
data/jwm-2.3.7/src/image.c:329:9:  [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).
   fd = fopen(fileName, "rb");
data/jwm-2.3.7/src/image.c:554:7:  [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(result->data, data, (width * height + 7) / 8);
data/jwm-2.3.7/src/key.c:448:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      np->code = atoi(code);
data/jwm-2.3.7/src/lex.c:301:22:  [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(&current->value[value_len], temp, temp_len + 1);
data/jwm-2.3.7/src/lex.c:431: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(buffer, line, len);
data/jwm-2.3.7/src/main.c:127:7:  [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(configPath, temp, temp_len);
data/jwm-2.3.7/src/main.c:128:7:  [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(&configPath[temp_len], CONFIG_FILE, config_len);
data/jwm-2.3.7/src/main.c:338: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 name[32];
data/jwm-2.3.7/src/misc.c:88:7:  [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(temp, str, stop);
data/jwm-2.3.7/src/misc.c:122:7:  [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(temp, *str, strLength + 1);
data/jwm-2.3.7/src/misc.c:145:7:  [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(temp, value, valueLength);
data/jwm-2.3.7/src/misc.c:222: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(temp, str, len);
data/jwm-2.3.7/src/parse.c:1732:42:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      const unsigned desktop = (unsigned)atoi(option + 8);
data/jwm-2.3.7/src/parse.c:1740:21:  [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).
      const int x = atoi(option + 2);
data/jwm-2.3.7/src/parse.c:1743:21:  [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).
      const int y = atoi(option + 2);
data/jwm-2.3.7/src/parse.c:1746:40:  [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).
      const unsigned width = (unsigned)atoi(option + 6);
data/jwm-2.3.7/src/parse.c:1749:41:  [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).
      const unsigned height = (unsigned)atoi(option + 7);
data/jwm-2.3.7/src/parse.c:1795:7:  [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(temp, value, len);
data/jwm-2.3.7/src/parse.c:1803:7:  [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(temp, sep + 1, len);
data/jwm-2.3.7/src/parse.c:1913: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).
   int fd = open(path, O_RDONLY);
data/jwm-2.3.7/src/status.c:152: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 str[80];
data/jwm-2.3.7/src/status.c:183: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 str[80];
data/jwm-2.3.7/src/taskbar.c:489:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&item->name[1], cp->client->name, len);
data/jwm-2.3.7/src/taskbar.c:959:11:  [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).
   temp = atoi(value);
data/jwm-2.3.7/src/taskbar.c:973:11:  [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).
   temp = atoi(value);
data/jwm-2.3.7/src/timing.c:59: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.
   static char saveTZ[256];
data/jwm-2.3.7/src/timing.c:60: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.
   static char newTZ[256];
data/jwm-2.3.7/src/timing.c:61: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.
   static char str[80];
data/jwm-2.3.7/src/timing.c:71:10:  [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(saveTZ, "TZ=");
data/jwm-2.3.7/src/tray.c:1022:21:  [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).
   tp->requestedX = atoi(str);
data/jwm-2.3.7/src/tray.c:1030:21:  [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).
   tp->requestedY = atoi(str);
data/jwm-2.3.7/src/tray.c:1036:25:  [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).
   tp->requestedWidth = atoi(str);
data/jwm-2.3.7/src/tray.c:1042:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   tp->requestedHeight = atoi(str);
data/jwm-2.3.7/src/action.c:191:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         if(ap->action && strlen(ap->action) > 0) {
data/jwm-2.3.7/src/background.c:252:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen(sep + 1);
data/jwm-2.3.7/src/color.c:360:28:  [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 unsigned len = strlen(value);
data/jwm-2.3.7/src/command.c:131: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).
         const size_t var_len = strlen(displayString) + 9;
data/jwm-2.3.7/src/desktop.c:217: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).
      const size_t len = strlen(desktopNames[x]);
data/jwm-2.3.7/src/desktop.c:246: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).
      const size_t len = strlen(desktopNames[x]);
data/jwm-2.3.7/src/font.c:187: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).
      size_t inLeft = strlen(str);
data/jwm-2.3.7/src/font.c:216: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).
      size_t inLeft = strlen(str);
data/jwm-2.3.7/src/font.c:267: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).
   len = strlen(utf8String);
data/jwm-2.3.7/src/font.c:279: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).
   len = strlen(output);
data/jwm-2.3.7/src/font.c:357: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).
   len = strlen(utf8String);
data/jwm-2.3.7/src/font.c:378: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).
   len = strlen(output);
data/jwm-2.3.7/src/hint.c:198: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).
      count += strlen(GetDesktopName(x)) + 1;
data/jwm-2.3.7/src/hint.c:231:28:  [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 unsigned len = strlen(name);
data/jwm-2.3.7/src/hint.c:759:32:  [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 size_t len = strlen(tlist[0]) + 1;
data/jwm-2.3.7/src/hint.c:772: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).
         const size_t len = strlen(temp) + 1;
data/jwm-2.3.7/src/icon.c:172:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   length = strlen(path);
data/jwm-2.3.7/src/icon.c:345:32:  [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 unsigned nameLength = strlen(name);
data/jwm-2.3.7/src/icon.c:346:32:  [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 unsigned pathLength = strlen(path);
data/jwm-2.3.7/src/icon.c:361: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).
      const unsigned extLength = strlen(ICON_EXTENSIONS[i]);
data/jwm-2.3.7/src/icon.c:377: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).
         const unsigned len = strlen(ICON_EXTENSIONS[i]);
data/jwm-2.3.7/src/image.c:76:17:  [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).
   nameLength = strlen(fileName);
data/jwm-2.3.7/src/key.c:389:17:  [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(stroke && strlen(stroke) > 0) {
data/jwm-2.3.7/src/key.c:438:22:  [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).
   } else if(code && strlen(code) > 0) {
data/jwm-2.3.7/src/lex.c:220:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
               x += strlen(temp);
data/jwm-2.3.7/src/lex.c:230:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
               x += strlen(temp);
data/jwm-2.3.7/src/lex.c:273:24:  [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).
                  x += strlen(ap->name);
data/jwm-2.3.7/src/lex.c:297: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).
                     const unsigned value_len = strlen(current->value);
data/jwm-2.3.7/src/lex.c:298: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).
                     const unsigned temp_len = strlen(temp);
data/jwm-2.3.7/src/lex.c:365:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         strncpy(temp, entity, x + 1);
data/jwm-2.3.7/src/main.c:124: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).
      const size_t temp_len = strlen(temp);
data/jwm-2.3.7/src/misc.c:110: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).
   strLength = strlen(*str);
data/jwm-2.3.7/src/misc.c:111:17:  [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).
   nameLength = strlen(name) + 1; /* Account for the '$'. */
data/jwm-2.3.7/src/misc.c:113:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      valueLength = strlen(value);
data/jwm-2.3.7/src/misc.c:168: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).
            x += strlen(value) - 1;
data/jwm-2.3.7/src/misc.c:187:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   length = strlen(str);
data/jwm-2.3.7/src/misc.c:220: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).
   len = strlen(str) + 1;
data/jwm-2.3.7/src/parse.c:1801:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen(sep + 1);
data/jwm-2.3.7/src/parse.c:2048:53:  [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 size_t msg_len = sizeof(FILE_MESSAGE) + strlen(tp->fileName) + 1;
data/jwm-2.3.7/src/popup.c:199:14:  [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).
      ptr += strlen(ptr) + 1;
data/jwm-2.3.7/src/taskbar.c:485:22:  [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(cp->client->name);
data/jwm-2.3.7/src/taskbar.c:785:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
               const size_t len = strlen(tp->clients->client->className) + 16;
data/jwm-2.3.7/src/traybutton.c:128:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if(JUNLIKELY((label == NULL || strlen(label) == 0)
data/jwm-2.3.7/src/traybutton.c:129: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).
      && (iconName == NULL || strlen(iconName) == 0))) {

ANALYSIS SUMMARY:

Hits = 107
Lines analyzed = 29555 in approximately 0.74 seconds (40144 lines/second)
Physical Source Lines of Code (SLOC) = 21400
Hits@level = [0]  26 [1]  44 [2]  52 [3]   3 [4]   8 [5]   0
Hits@level+ = [0+] 133 [1+] 107 [2+]  63 [3+]  11 [4+]   8 [5+]   0
Hits/KSLOC@level+ = [0+] 6.21495 [1+]   5 [2+] 2.94393 [3+] 0.514019 [4+] 0.373832 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.