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/pekwm-0.1.17/src/x11.cc
Examining data/pekwm-0.1.17/src/WorkspaceIndicator.cc
Examining data/pekwm-0.1.17/src/Workspaces.cc
Examining data/pekwm-0.1.17/src/WindowManager.cc
Examining data/pekwm-0.1.17/src/WORefMenu.cc
Examining data/pekwm-0.1.17/src/Util.cc
Examining data/pekwm-0.1.17/src/TextureHandler.cc
Examining data/pekwm-0.1.17/src/Theme.cc
Examining data/pekwm-0.1.17/src/SearchDialog.cc
Examining data/pekwm-0.1.17/src/StatusWindow.cc
Examining data/pekwm-0.1.17/src/ScreenResources.cc
Examining data/pekwm-0.1.17/src/RegexString.cc
Examining data/pekwm-0.1.17/src/PixmapHandler.cc
Examining data/pekwm-0.1.17/src/PImageLoaderXpm.cc
Examining data/pekwm-0.1.17/src/PImageLoaderPng.cc
Examining data/pekwm-0.1.17/src/PImageLoaderJpeg.cc
Examining data/pekwm-0.1.17/src/PImageIcon.cc
Examining data/pekwm-0.1.17/src/PImage.cc
Examining data/pekwm-0.1.17/src/PWinObjReference.cc
Examining data/pekwm-0.1.17/src/PWinObj.cc
Examining data/pekwm-0.1.17/src/PTexturePlain.cc
Examining data/pekwm-0.1.17/src/PMenu.cc
Examining data/pekwm-0.1.17/src/PFont.cc
Examining data/pekwm-0.1.17/src/PDecor.cc
Examining data/pekwm-0.1.17/src/Observable.cc
Examining data/pekwm-0.1.17/src/MenuHandler.cc
Examining data/pekwm-0.1.17/src/ManagerWindows.cc
Examining data/pekwm-0.1.17/src/KeyGrabber.cc
Examining data/pekwm-0.1.17/src/InputDialog.cc
Examining data/pekwm-0.1.17/src/ImageHandler.cc
Examining data/pekwm-0.1.17/src/Harbour.cc
Examining data/pekwm-0.1.17/src/FrameListMenu.cc
Examining data/pekwm-0.1.17/src/FontHandler.cc
Examining data/pekwm-0.1.17/src/Frame.cc
Examining data/pekwm-0.1.17/src/DockApp.cc
Examining data/pekwm-0.1.17/src/CmdDialog.cc
Examining data/pekwm-0.1.17/src/Client.cc
Examining data/pekwm-0.1.17/src/Completer.cc
Examining data/pekwm-0.1.17/src/Compat.cc
Examining data/pekwm-0.1.17/src/CfgParserKey.cc
Examining data/pekwm-0.1.17/src/CfgParser.cc
Examining data/pekwm-0.1.17/src/AutoProperties.cc
Examining data/pekwm-0.1.17/src/ActionMenu.cc
Examining data/pekwm-0.1.17/src/Debug.cc
Examining data/pekwm-0.1.17/src/CfgParserSource.cc
Examining data/pekwm-0.1.17/src/main.cc
Examining data/pekwm-0.1.17/src/ActionHandler.cc
Examining data/pekwm-0.1.17/src/Config.cc

FINAL RESULTS:

data/pekwm-0.1.17/src/CfgParserSource.cc:101:9:  [4] (shell) execlp:
  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.
        execlp("/bin/sh", "sh", "-c", _name.c_str(), (char *) 0);
data/pekwm-0.1.17/src/Compat.cc:45:5:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
    swprintf(wchar_t *wcs, size_t maxlen, const wchar_t *format, ...)
data/pekwm-0.1.17/src/Compat.cc:59:13:  [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(res, maxlen, mb_format.c_str(), ap);
data/pekwm-0.1.17/src/Frame.cc:564:5:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
    swprintf(buf, size, L"%d+%d+%d+%d", width, height, _gm.x, _gm.y);
data/pekwm-0.1.17/src/FrameListMenu.cc:137:13:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
            swprintf(buf, 16, L"<%d> ", i + 1);
data/pekwm-0.1.17/src/PDecor.cc:1132:5:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
    swprintf(buf, size, L"%dx%d+%d+%d", _gm.width, _gm.height, _gm.x, _gm.y);
data/pekwm-0.1.17/src/PImageLoaderXpm.cc:25:12:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
using std::sscanf;
data/pekwm-0.1.17/src/Util.cc:96:9:  [4] (shell) execlp:
  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.
        execlp("/bin/sh", "sh", "-c", command.c_str(), (char *) 0);
data/pekwm-0.1.17/src/main.cc:140:17:  [4] (shell) execlp:
  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.
                execlp("/bin/sh", "sh" , "-c", command.c_str(), (char*) 0);
data/pekwm-0.1.17/src/CfgParser.cc:776:23:  [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.
        char *value = getenv(var_name.c_str() + 2);
data/pekwm-0.1.17/src/Compat.cc:89:24:  [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.
    if (! overwrite && getenv(name)) {
data/pekwm-0.1.17/src/Compat.cc:112:25:  [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 *value = getenv(name);
data/pekwm-0.1.17/src/Completer.cc:127: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.
        Util::splitString(getenv("PATH") ? getenv("PATH") : "", path_parts, ":");
data/pekwm-0.1.17/src/Completer.cc:127:44:  [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.
        Util::splitString(getenv("PATH") ? getenv("PATH") : "", path_parts, ":");
data/pekwm-0.1.17/src/Config.cc:40:12:  [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.
using std::getenv;
data/pekwm-0.1.17/src/Config.cc:475:21:  [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.
    char *cfg_env = getenv("PEKWM_CONFIG_FILE");
data/pekwm-0.1.17/src/Config.cc:1519:23:  [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.
        file = string(getenv("HOME")) + string("/.pekwm/config");
data/pekwm-0.1.17/src/Config.cc:1542:22:  [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.
    string cfg_dir = getenv("HOME") + string("/.pekwm");
data/pekwm-0.1.17/src/Util.cc:47:12:  [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.
using std::getenv;
data/pekwm-0.1.17/src/Util.cc:230:13:  [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.
        if (getenv("USER")) {
data/pekwm-0.1.17/src/Util.cc:231:20:  [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.
            return getenv("USER");
data/pekwm-0.1.17/src/Util.cc:269:32:  [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.
            file.replace(0, 1, getenv("HOME"));
data/pekwm-0.1.17/src/WindowManager.cc:301:17:  [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.
             << getenv("DISPLAY") << endl;
data/pekwm-0.1.17/src/main.cc:114:13:  [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.
        if (getenv("PEKWM_CONFIG_FILE") && strlen(getenv("PEKWM_CONFIG_FILE"))) {
data/pekwm-0.1.17/src/main.cc:114:51:  [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.
        if (getenv("PEKWM_CONFIG_FILE") && strlen(getenv("PEKWM_CONFIG_FILE"))) {
data/pekwm-0.1.17/src/main.cc:115: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.
            config_file = getenv("PEKWM_CONFIG_FILE");
data/pekwm-0.1.17/src/main.cc:117:34:  [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.
            config_file = string(getenv("HOME")) + string("/.pekwm/config");
data/pekwm-0.1.17/src/CfgParser.cc:458:21:  [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).
            source->open();
data/pekwm-0.1.17/src/CfgParserSource.cc:27: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).
using std::fopen;
data/pekwm-0.1.17/src/CfgParserSource.cc:37:22:  [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).
CfgParserSourceFile::open(void)
data/pekwm-0.1.17/src/CfgParserSource.cc:44:13:  [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).
    _file = fopen(_name.c_str(), "r");
data/pekwm-0.1.17/src/CfgParserSource.cc:68:25:  [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).
CfgParserSourceCommand::open(void)
data/pekwm-0.1.17/src/Config.cc:422: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(*names, utf8_names.c_str(), utf8_names.size());
data/pekwm-0.1.17/src/Config.cc:1088:50:  [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).
                        action.setParamI(0, std::atoi(tok[tok.size() - 2].c_str()));
data/pekwm-0.1.17/src/Config.cc:1089:50:  [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).
                        action.setParamI(1, std::atoi(tok[tok.size() - 1].c_str()));
data/pekwm-0.1.17/src/Config.cc:1091:50:  [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).
                        action.setParamI(0, std::atoi(tok[1].c_str()));
data/pekwm-0.1.17/src/Config.cc:1092:50:  [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).
                        action.setParamI(1, std::atoi(tok[1].c_str()));
data/pekwm-0.1.17/src/Config.cc:1867:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        focused = std::atoi(tokens.at(0).c_str());
data/pekwm-0.1.17/src/Config.cc:1868: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).
        unfocused = std::atoi(tokens.at(1).c_str());
data/pekwm-0.1.17/src/Config.cc:1871:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        focused = unfocused = std::atoi(tokens.at(0).c_str());
data/pekwm-0.1.17/src/Debug.cc:78: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).
            int nr = std::atoi(args[1].c_str());
data/pekwm-0.1.17/src/Debug.cc:102: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(buf, begin, end-begin);
data/pekwm-0.1.17/src/Frame.cc:1219: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 buf[128];
data/pekwm-0.1.17/src/FrameListMenu.cc:114: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 buf[16];
data/pekwm-0.1.17/src/InputDialog.cc:433: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_return[64];
data/pekwm-0.1.17/src/PDecor.cc:1232: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 buf[128];
data/pekwm-0.1.17/src/PDecor.cc:1362: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 buf[128];
data/pekwm-0.1.17/src/PImageLoaderJpeg.cc:51: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).
    fp= fopen(file.c_str(), "rb");
data/pekwm-0.1.17/src/PImageLoaderPng.cc:52:10:  [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).
    fp = fopen(file.c_str(), "rb");
data/pekwm-0.1.17/src/PImageLoaderXpm.cc:119:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char c_buf[3] = { '\0', '\0', '\0' }; // Temporary hex color string.
data/pekwm-0.1.17/src/Util.cc:116: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 hostname_buf[HOST_NAME_MAX + 1];
data/pekwm-0.1.17/src/x11.cc:76: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 error_buf[256];
data/pekwm-0.1.17/src/CfgParser.cc:367:30:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((c = _source->getc()) != EOF) {
data/pekwm-0.1.17/src/CfgParser.cc:411:33:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                next = _source->getc();
data/pekwm-0.1.17/src/CfgParser.cc:532:26:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = _source->getc()) != EOF && c != '"')
data/pekwm-0.1.17/src/CfgParser.cc:542:26:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = _source->getc()) != EOF && c != '"') {
data/pekwm-0.1.17/src/CfgParser.cc:545:26:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            c = _source->getc();
data/pekwm-0.1.17/src/CfgParser.cc:659:26:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (((c = source->getc()) != EOF) && (c != '\n'))
data/pekwm-0.1.17/src/CfgParser.cc:673:25:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = source->getc()) != EOF) {
data/pekwm-0.1.17/src/CfgParser.cc:675:30:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if ((c = source->getc()) == '/') {
data/pekwm-0.1.17/src/CfgParser.cc:693:26:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (((c = source->getc()) != EOF) && isspace(c))
data/pekwm-0.1.17/src/CfgParser.cc:779: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).
            end = begin + strlen(value);
data/pekwm-0.1.17/src/Compat.cc:52:28:  [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 = std::min(wcslen(SWPRINTF_LS_NOT_SUPPORTED), maxlen - 1);
data/pekwm-0.1.17/src/Compat.cc:72:16:  [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).
        return wcslen(wcs);
data/pekwm-0.1.17/src/Compat.cc:93: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).
    size_t len = strlen(name) + strlen(value) + 2;
data/pekwm-0.1.17/src/Compat.cc:93: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).
    size_t len = strlen(name) + strlen(value) + 2;
data/pekwm-0.1.17/src/Compat.cc:113: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).
    if (value && strlen(value)) {
data/pekwm-0.1.17/src/Completer.cc:186:43:  [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).
           : _prefix(prefix), _prefix_len(wcslen(prefix)), _state(state) {
data/pekwm-0.1.17/src/Config.cc:443: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).
        i += strlen(names) + 1;
data/pekwm-0.1.17/src/Config.cc:444: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).
        names += strlen(names) + 1;
data/pekwm-0.1.17/src/PImageLoaderXpm.cc:26: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).
using std::strlen;
data/pekwm-0.1.17/src/PImageLoaderXpm.cc:139: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 (color && color[0] == '#' && strlen(color) == 7) {
data/pekwm-0.1.17/src/main.cc:114:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (getenv("PEKWM_CONFIG_FILE") && strlen(getenv("PEKWM_CONFIG_FILE"))) {
data/pekwm-0.1.17/src/x11.cc:654:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                               &r_type, &r_format, &read, &left, data);
data/pekwm-0.1.17/src/x11.cc:666:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        *actual = read;

ANALYSIS SUMMARY:

Hits = 75
Lines analyzed = 26323 in approximately 0.58 seconds (45303 lines/second)
Physical Source Lines of Code (SLOC) = 19072
Hits@level = [0]   3 [1]  23 [2]  25 [3]  18 [4]   9 [5]   0
Hits@level+ = [0+]  78 [1+]  75 [2+]  52 [3+]  27 [4+]   9 [5+]   0
Hits/KSLOC@level+ = [0+] 4.08977 [1+] 3.93247 [2+] 2.72651 [3+] 1.41569 [4+] 0.471896 [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.