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/blackbox-0.70.1/lib/Application.cc Examining data/blackbox-0.70.1/lib/Bitmap.cc Examining data/blackbox-0.70.1/lib/Color.cc Examining data/blackbox-0.70.1/lib/Display.cc Examining data/blackbox-0.70.1/lib/EWMH.cc Examining data/blackbox-0.70.1/lib/Font.cc Examining data/blackbox-0.70.1/lib/Menu.cc Examining data/blackbox-0.70.1/lib/Pen.cc Examining data/blackbox-0.70.1/lib/PixmapCache.cc Examining data/blackbox-0.70.1/lib/Rect.cc Examining data/blackbox-0.70.1/lib/Texture.cc Examining data/blackbox-0.70.1/lib/Timer.cc Examining data/blackbox-0.70.1/lib/Unicode.cc Examining data/blackbox-0.70.1/lib/Util.cc Examining data/blackbox-0.70.1/lib/Resource.cc Examining data/blackbox-0.70.1/lib/XDG.cc Examining data/blackbox-0.70.1/lib/Image.cc Examining data/blackbox-0.70.1/src/Clientmenu.cc Examining data/blackbox-0.70.1/src/Configmenu.cc Examining data/blackbox-0.70.1/src/Iconmenu.cc Examining data/blackbox-0.70.1/src/Rootmenu.cc Examining data/blackbox-0.70.1/src/Slit.cc Examining data/blackbox-0.70.1/src/Slitmenu.cc Examining data/blackbox-0.70.1/src/StackingList.cc Examining data/blackbox-0.70.1/src/Toolbarmenu.cc Examining data/blackbox-0.70.1/src/WindowGroup.cc Examining data/blackbox-0.70.1/src/Windowmenu.cc Examining data/blackbox-0.70.1/src/Workspace.cc Examining data/blackbox-0.70.1/src/Workspacemenu.cc Examining data/blackbox-0.70.1/src/main.cc Examining data/blackbox-0.70.1/src/BlackboxResource.cc Examining data/blackbox-0.70.1/src/Screen.cc Examining data/blackbox-0.70.1/src/ScreenResource.cc Examining data/blackbox-0.70.1/src/Toolbar.cc Examining data/blackbox-0.70.1/src/blackbox.cc Examining data/blackbox-0.70.1/src/Window.cc Examining data/blackbox-0.70.1/util/bstyleconvert.cc Examining data/blackbox-0.70.1/util/bsetroot.cc FINAL RESULTS: data/blackbox-0.70.1/lib/Util.cc:154:11: [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. ret = execl("/bin/sh", "/bin/sh", "-c", cmd.c_str(), NULL); data/blackbox-0.70.1/src/Screen.cc:1337:25: [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. ? popen(filename + 1, "r") data/blackbox-0.70.1/src/Screen.cc:1544:29: [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. ? popen(newfile.c_str(), "r") data/blackbox-0.70.1/src/blackbox.cc:560:5: [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(prog.c_str(), prog.c_str(), NULL); data/blackbox-0.70.1/src/blackbox.cc:565:3: [4] (shell) execvp: 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. execvp(argv[0], argv); data/blackbox-0.70.1/src/blackbox.cc:567:3: [4] (shell) execvp: 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. execvp(name.c_str(), argv); data/blackbox-0.70.1/lib/Util.cc:137:28: [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* const home = getenv("HOME"); data/blackbox-0.70.1/lib/XDG.cc:43:28: [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 * const env = getenv(name); data/blackbox-0.70.1/lib/XDG.cc:52:28: [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 * const env = getenv(name); data/blackbox-0.70.1/src/main.cc:128: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. _chdir2(getenv("X11ROOT")); data/blackbox-0.70.1/lib/Application.cc:68: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 errtxt[128]; data/blackbox-0.70.1/lib/EWMH.cc:112: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 *names[AtomCount]; data/blackbox-0.70.1/lib/Image.cc:1352: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(p, data, width * sizeof(RGB)); data/blackbox-0.70.1/lib/Resource.cc: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 tmp[16]; data/blackbox-0.70.1/lib/Resource.cc:186:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tmp, "%d", value); data/blackbox-0.70.1/lib/Resource.cc:192: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 tmp[16]; data/blackbox-0.70.1/lib/Resource.cc:193:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tmp, "%u", value); data/blackbox-0.70.1/lib/Resource.cc:199: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 tmp[64]; data/blackbox-0.70.1/lib/Resource.cc:200:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tmp, "%ld", value); data/blackbox-0.70.1/lib/Resource.cc:206: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 tmp[64]; data/blackbox-0.70.1/lib/Resource.cc:207:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tmp, "%lu", value); data/blackbox-0.70.1/lib/Resource.cc:217: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 tmp[80]; data/blackbox-0.70.1/lib/Resource.cc:218:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tmp, "%f", value); data/blackbox-0.70.1/src/Screen.cc:1338:25: [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). : fopen(filename, "r"); data/blackbox-0.70.1/src/Screen.cc:1347: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 line[1024], label[1024]; data/blackbox-0.70.1/src/Screen.cc:1437: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 line[1024], keyword[1024], label[1024], command[1024]; data/blackbox-0.70.1/src/Screen.cc:1545:29: [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). : fopen(newfile.c_str(), "r"); data/blackbox-0.70.1/src/Screen.cc:1760: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 label[80]; data/blackbox-0.70.1/src/Screen.cc:1763:5: [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(label, "X:%4d Y:%4d", rect.x(), rect.y()); data/blackbox-0.70.1/src/Screen.cc:1766:5: [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(label, "W:%4u H:%4u", rect.width(), rect.height()); data/blackbox-0.70.1/src/ScreenResource.cc:65: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 rc_string[128]; data/blackbox-0.70.1/src/ScreenResource.cc:80:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(rc_string, "session.screen%u.slit.placement", number); data/blackbox-0.70.1/src/ScreenResource.cc:83:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(rc_string, "session.screen%u.slit.direction", number); data/blackbox-0.70.1/src/ScreenResource.cc:87:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(rc_string, "session.screen%u.slit.onTop", number); data/blackbox-0.70.1/src/ScreenResource.cc:90:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(rc_string, "session.screen%u.slit.autoHide", number); data/blackbox-0.70.1/src/ScreenResource.cc:94:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(rc_string, "session.screen%u.enableToolbar", number); data/blackbox-0.70.1/src/ScreenResource.cc:97:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(rc_string, "session.screen%u.toolbar.onTop", number); data/blackbox-0.70.1/src/ScreenResource.cc:100:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(rc_string, "session.screen%u.toolbar.autoHide", number); data/blackbox-0.70.1/src/ScreenResource.cc:112:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(rc_string, "session.screen%u.toolbar.placement", number); data/blackbox-0.70.1/src/ScreenResource.cc:115:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(rc_string, "session.screen%u.workspaces", number); data/blackbox-0.70.1/src/ScreenResource.cc:126:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(rc_string, "session.screen%u.workspaceNames", number); data/blackbox-0.70.1/src/ScreenResource.cc:131:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(rc_string, "session.screen%u.toolbar.widthPercent", number); data/blackbox-0.70.1/src/ScreenResource.cc:134:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(rc_string, "session.screen%u.strftimeFormat", number); data/blackbox-0.70.1/src/ScreenResource.cc:139: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_lookup[128], class_lookup[128]; data/blackbox-0.70.1/src/ScreenResource.cc:143:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name_lookup, "session.screen%u.enableToolbar", screen); data/blackbox-0.70.1/src/ScreenResource.cc:144:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(class_lookup, "Session.screen%u.enableToolbar", screen); data/blackbox-0.70.1/src/ScreenResource.cc:147:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name_lookup, "session.screen%u.toolbar.widthPercent", screen); data/blackbox-0.70.1/src/ScreenResource.cc:148:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(class_lookup, "Session.screen%u.Toolbar.WidthPercent", screen); data/blackbox-0.70.1/src/ScreenResource.cc:151:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name_lookup, "session.screen%u.toolbar.placement", screen); data/blackbox-0.70.1/src/ScreenResource.cc:152:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(class_lookup, "Session.screen%u.Toolbar.Placement", screen); data/blackbox-0.70.1/src/ScreenResource.cc:167:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name_lookup, "session.screen%u.toolbar.onTop", screen); data/blackbox-0.70.1/src/ScreenResource.cc:168:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(class_lookup, "Session.screen%u.Toolbar.OnTop", screen); data/blackbox-0.70.1/src/ScreenResource.cc:171:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name_lookup, "session.screen%u.toolbar.autoHide", screen); data/blackbox-0.70.1/src/ScreenResource.cc:172:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(class_lookup, "Session.screen%u.Toolbar.autoHide", screen); data/blackbox-0.70.1/src/ScreenResource.cc:175:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name_lookup, "session.screen%u.strftimeFormat", screen); data/blackbox-0.70.1/src/ScreenResource.cc:176:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(class_lookup, "Session.screen%u.StrftimeFormat", screen); data/blackbox-0.70.1/src/ScreenResource.cc:181:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name_lookup, "session.screen%u.slit.placement", screen); data/blackbox-0.70.1/src/ScreenResource.cc:182:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(class_lookup, "Session.screen%u.Slit.Placement", screen); data/blackbox-0.70.1/src/ScreenResource.cc:201:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name_lookup, "session.screen%u.slit.direction", screen); data/blackbox-0.70.1/src/ScreenResource.cc:202:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(class_lookup, "Session.screen%u.Slit.Direction", screen); data/blackbox-0.70.1/src/ScreenResource.cc:209:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name_lookup, "session.screen%u.slit.onTop", screen); data/blackbox-0.70.1/src/ScreenResource.cc:210:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(class_lookup, "Session.screen%u.Slit.OnTop", screen); data/blackbox-0.70.1/src/ScreenResource.cc:213:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name_lookup, "session.screen%u.slit.autoHide", screen); data/blackbox-0.70.1/src/ScreenResource.cc:214:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(class_lookup, "Session.screen%u.Slit.AutoHide", screen); data/blackbox-0.70.1/src/ScreenResource.cc:219:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name_lookup, "session.screen%u.workspaces", screen); data/blackbox-0.70.1/src/ScreenResource.cc:220:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(class_lookup, "Session.screen%u.Workspaces", screen); data/blackbox-0.70.1/src/ScreenResource.cc:226:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name_lookup, "session.screen%u.workspaceNames", screen); data/blackbox-0.70.1/src/ScreenResource.cc:227:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(class_lookup, "Session.screen%u.WorkspaceNames", screen); data/blackbox-0.70.1/src/Toolbar.cc:267: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 t[1024]; data/blackbox-0.70.1/src/Toolbar.cc:457: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 str[1024]; data/blackbox-0.70.1/src/Workspace.cc:58: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 default_name[80]; data/blackbox-0.70.1/src/Workspace.cc:59:5: [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(default_name, "Workspace %u", _id + 1); data/blackbox-0.70.1/util/bsetroot.cc:74:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). mod_x = atoi(argv[i]); data/blackbox-0.70.1/util/bsetroot.cc:78:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). mod_y = atoi(argv[i]); data/blackbox-0.70.1/util/bsetroot.cc:230: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 data[32]; data/blackbox-0.70.1/lib/Font.cc:587:38: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). std::string res = tolower(resource.read(name, classname)); data/blackbox-0.70.1/lib/Menu.cc:82:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). resource.read("menu.title.foregroundColor", data/blackbox-0.70.1/lib/Menu.cc:87:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). resource.read("menu.title.textColor", data/blackbox-0.70.1/lib/Menu.cc:92:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). resource.read("menu.frame.foregroundColor", data/blackbox-0.70.1/lib/Menu.cc:97:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). resource.read("menu.frame.textColor", data/blackbox-0.70.1/lib/Menu.cc:102:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). resource.read("menu.frame.disabledColor", data/blackbox-0.70.1/lib/Menu.cc:107:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). resource.read("menu.active.foregroundColor", data/blackbox-0.70.1/lib/Menu.cc:112:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). resource.read("menu.active.textColor", data/blackbox-0.70.1/lib/Menu.cc:117:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). title.font.setFontName(resource.read("menu.title.font", "Menu.Title.Font")); data/blackbox-0.70.1/lib/Menu.cc:118:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). frame.font.setFontName(resource.read("menu.frame.font", "Menu.Frame.Font")); data/blackbox-0.70.1/lib/Menu.cc:136:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). str = resource.read("menu.title.marginWidth", "Menu.Title.MarginWidth", "1"); data/blackbox-0.70.1/lib/Menu.cc:140:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). str = resource.read("menu.frame.marginWidth", "Menu.Frame.MarginWidth", "1"); data/blackbox-0.70.1/lib/Resource.cc:76:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). std::string bt::Resource::read(const char* name, const char* classname, data/blackbox-0.70.1/lib/Resource.cc:86:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). std::string bt::Resource::read(const std::string& name, data/blackbox-0.70.1/lib/Resource.cc:98:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int bt::Resource::read(const char* name, const char* classname, data/blackbox-0.70.1/lib/Resource.cc:111:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). unsigned int bt::Resource::read(const char* name, const char* classname, data/blackbox-0.70.1/lib/Resource.cc:124:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). long bt::Resource::read(const char* name, const char* classname, data/blackbox-0.70.1/lib/Resource.cc:137:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). unsigned long bt::Resource::read(const char* name, const char* classname, data/blackbox-0.70.1/lib/Resource.cc:150:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool bt::Resource::read(const char* name, const char* classname, data/blackbox-0.70.1/lib/Resource.cc:163:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). double bt::Resource::read(const char* name, const char* classname, data/blackbox-0.70.1/lib/Texture.cc:139:38: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). std::string description = resource.read(name + ".appearance", data/blackbox-0.70.1/lib/Texture.cc:141:52: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). resource.read(name, data/blackbox-0.70.1/lib/Texture.cc:155:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). color1 = resource.read(name + ".color1", data/blackbox-0.70.1/lib/Texture.cc:157:37: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). resource.read(name + ".color", data/blackbox-0.70.1/lib/Texture.cc:160:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). color2 = resource.read(name + ".color2", data/blackbox-0.70.1/lib/Texture.cc:162:37: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). resource.read(name + ".colorTo", data/blackbox-0.70.1/lib/Texture.cc:169:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). color1 = resource.read(name + ".backgroundColor", data/blackbox-0.70.1/lib/Texture.cc:171:37: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). resource.read(name + ".color", data/blackbox-0.70.1/lib/Texture.cc:180:34: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). resource.read(name + ".borderColor", data/blackbox-0.70.1/lib/Texture.cc:186:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). resource.read(name + ".borderWidth", className + ".BorderWidth", "1"); data/blackbox-0.70.1/lib/Texture.cc:202:38: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). std::string description = resource.read(name + ".appearance", data/blackbox-0.70.1/lib/Texture.cc:204:52: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). resource.read(name, data/blackbox-0.70.1/lib/Util.cc:89:23: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). mode_t save_umask = umask(0); data/blackbox-0.70.1/lib/Util.cc:92:10: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void) umask(tmp_umask); data/blackbox-0.70.1/lib/Util.cc:104:14: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void) umask(save_umask); data/blackbox-0.70.1/lib/Util.cc:128:12: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void) umask(save_umask); data/blackbox-0.70.1/lib/Util.cc:204: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). text_prop.nitems = strlen(reinterpret_cast<char *>(text_prop.value)); data/blackbox-0.70.1/src/BlackboxResource.cc:56:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). menu_file = bt::expandTilde(res.read("session.menuFile", data/blackbox-0.70.1/src/BlackboxResource.cc:60:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). style_file = bt::expandTilde(res.read("session.styleFile", data/blackbox-0.70.1/src/BlackboxResource.cc:64:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). unsigned int maxcolors = res.read("session.maximumColors", data/blackbox-0.70.1/src/BlackboxResource.cc:70:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). double_click_interval = res.read("session.doubleClickInterval", data/blackbox-0.70.1/src/BlackboxResource.cc:74:34: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). auto_raise_delay.tv_usec = res.read("session.autoRaiseDelay", data/blackbox-0.70.1/src/BlackboxResource.cc:83:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). std::string str = res.read("session.imageDither", data/blackbox-0.70.1/src/BlackboxResource.cc:121:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). str = res.read("session.focusModel", data/blackbox-0.70.1/src/BlackboxResource.cc:123:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("session.screen0.focusModel", data/blackbox-0.70.1/src/BlackboxResource.cc:136:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). str = res.read("session.windowPlacement", data/blackbox-0.70.1/src/BlackboxResource.cc:138:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("session.screen0.windowPlacement", data/blackbox-0.70.1/src/BlackboxResource.cc:150:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). str = res.read("session.rowPlacementDirection", data/blackbox-0.70.1/src/BlackboxResource.cc:152:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("session.screen0.rowPlacementDirection", data/blackbox-0.70.1/src/BlackboxResource.cc:158:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). str = res.read("session.colPlacementDirection", data/blackbox-0.70.1/src/BlackboxResource.cc:160:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("session.screen0.colPlacementDirection", data/blackbox-0.70.1/src/BlackboxResource.cc:167:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("session.placementIgnoresShaded", data/blackbox-0.70.1/src/BlackboxResource.cc:172:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("session.opaqueMove", data/blackbox-0.70.1/src/BlackboxResource.cc:176:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("session.opaqueResize", data/blackbox-0.70.1/src/BlackboxResource.cc:180:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("session.fullMaximization", data/blackbox-0.70.1/src/BlackboxResource.cc:182:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("session.screen0.fullMaximization", data/blackbox-0.70.1/src/BlackboxResource.cc:186:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("session.focusNewWindows", data/blackbox-0.70.1/src/BlackboxResource.cc:188:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("session.screen0.focusNewWindows", data/blackbox-0.70.1/src/BlackboxResource.cc:192:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("session.focusLastWindow", data/blackbox-0.70.1/src/BlackboxResource.cc:194:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("session.screen0.focusLastWindow", data/blackbox-0.70.1/src/BlackboxResource.cc:198:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("session.changeWorkspaceWithMouseWheel", data/blackbox-0.70.1/src/BlackboxResource.cc:202:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("session.shadeWindowWithMouseWheel", data/blackbox-0.70.1/src/BlackboxResource.cc:206:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("session.toolbarActionsWithMouseWheel", data/blackbox-0.70.1/src/BlackboxResource.cc:210:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("session.disableBindingsWithScrollLock", data/blackbox-0.70.1/src/BlackboxResource.cc:212:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("session.screen0.disableBindingsWithScrollLock", data/blackbox-0.70.1/src/BlackboxResource.cc:216:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("session.edgeSnapThreshold", data/blackbox-0.70.1/src/BlackboxResource.cc:218:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("session.screen0.edgeSnapThreshold", data/blackbox-0.70.1/src/BlackboxResource.cc:222:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("session.windowSnapThreshold", data/blackbox-0.70.1/src/BlackboxResource.cc:235:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (bt::Resource(rc_file).read("session.cacheLife", data/blackbox-0.70.1/src/Screen.cc:1355:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int i, key = 0, index = -1, len = strlen(line); data/blackbox-0.70.1/src/Screen.cc:1451: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). size_t line_length = strlen(line); data/blackbox-0.70.1/src/Screen.cc:1460: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(keyword); data/blackbox-0.70.1/src/ScreenResource.cc:145:33: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _toolbarOptions.enabled = res.read(name_lookup, class_lookup, true); data/blackbox-0.70.1/src/ScreenResource.cc:149:39: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _toolbarOptions.width_percent = res.read(name_lookup, class_lookup, 66); data/blackbox-0.70.1/src/ScreenResource.cc:153:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). str = res.read(name_lookup, class_lookup, "BottomCenter"); data/blackbox-0.70.1/src/ScreenResource.cc:169:39: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _toolbarOptions.always_on_top = res.read(name_lookup, class_lookup, false); data/blackbox-0.70.1/src/ScreenResource.cc:173:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _toolbarOptions.auto_hide = res.read(name_lookup, class_lookup, false); data/blackbox-0.70.1/src/ScreenResource.cc:178:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read(name_lookup, class_lookup, "%I:%M %p"); data/blackbox-0.70.1/src/ScreenResource.cc:183:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). str = res.read(name_lookup, class_lookup, "CenterRight"); data/blackbox-0.70.1/src/ScreenResource.cc:203:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). str = res.read(name_lookup, class_lookup, "Vertical"); data/blackbox-0.70.1/src/ScreenResource.cc:211:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _slitOptions.always_on_top = res.read(name_lookup, class_lookup, false); data/blackbox-0.70.1/src/ScreenResource.cc:215:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _slitOptions.auto_hide = res.read(name_lookup, class_lookup, false); data/blackbox-0.70.1/src/ScreenResource.cc:221:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). workspace_count = res.read(name_lookup, class_lookup, 4); data/blackbox-0.70.1/src/ScreenResource.cc:228:40: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bt::ustring ustr = bt::toUnicode(res.read(name_lookup, class_lookup)); data/blackbox-0.70.1/src/ScreenResource.cc:258:37: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _windowStyle.font.setFontName(res.read("window.font", "Window.Font")); data/blackbox-0.70.1/src/ScreenResource.cc:272:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("window.label.focus.textColor", data/blackbox-0.70.1/src/ScreenResource.cc:277:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("window.button.focus.foregroundColor", data/blackbox-0.70.1/src/ScreenResource.cc:279:40: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("window.button.focus.picColor", data/blackbox-0.70.1/src/ScreenResource.cc:309:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("window.frame.focus.borderColor", data/blackbox-0.70.1/src/ScreenResource.cc:316:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("window.label.unfocus.textColor", data/blackbox-0.70.1/src/ScreenResource.cc:321:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("window.button.unfocus.foregroundColor", data/blackbox-0.70.1/src/ScreenResource.cc:323:40: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("window.button.unfocus.picColor", data/blackbox-0.70.1/src/ScreenResource.cc:353:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("window.frame.unfocus.borderColor", data/blackbox-0.70.1/src/ScreenResource.cc:367:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("window.title.marginWidth", "Window.Title.MarginWidth", 2); data/blackbox-0.70.1/src/ScreenResource.cc:369:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("window.label.marginWidth", "Window.Label.MarginWidth", 2); data/blackbox-0.70.1/src/ScreenResource.cc:371:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("window.button.marginWidth", "Window.Button.MarginWidth", 2); data/blackbox-0.70.1/src/ScreenResource.cc:373:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("window.frame.borderWidth", "Window.Frame.BorderWidth", 1); data/blackbox-0.70.1/src/ScreenResource.cc:375:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("window.handleHeight", "Window.HandleHeight", 6); data/blackbox-0.70.1/src/ScreenResource.cc:410:38: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _toolbarStyle.font.setFontName(res.read("toolbar.font", "Toolbar.Font")); data/blackbox-0.70.1/src/ScreenResource.cc:446:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("toolbar.label.textColor", data/blackbox-0.70.1/src/ScreenResource.cc:451:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("toolbar.windowLabel.textColor", data/blackbox-0.70.1/src/ScreenResource.cc:456:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("toolbar.clock.textColor", data/blackbox-0.70.1/src/ScreenResource.cc:461:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("toolbar.button.foregroundColor", data/blackbox-0.70.1/src/ScreenResource.cc:463:40: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("toolbar.button.picColor", data/blackbox-0.70.1/src/ScreenResource.cc:470:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("toolbar.marginWidth", "Toolbar.MarginWidth", 2); data/blackbox-0.70.1/src/ScreenResource.cc:472:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("toolbar.label.marginWidth", "Toolbar.Label.MarginWidth", 2); data/blackbox-0.70.1/src/ScreenResource.cc:474:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("toolbar.button.marginWidth", "Toolbar.Button.MarginWidth", 2); data/blackbox-0.70.1/src/ScreenResource.cc:505:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _slitStyle.margin = res.read("slit.marginWidth", "Slit.MarginWidth", 2); data/blackbox-0.70.1/src/ScreenResource.cc:509:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bt::Resource(rc_file).read("rootCommand", data/blackbox-0.70.1/src/ScreenResource.cc:511:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("rootCommand", data/blackbox-0.70.1/util/bstyleconvert.cc:340:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read(name, data/blackbox-0.70.1/util/bstyleconvert.cc:344:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read(name + ".color", data/blackbox-0.70.1/util/bstyleconvert.cc:348:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read(name + ".colorTo", data/blackbox-0.70.1/util/bstyleconvert.cc:360:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("window.label.focus.textColor", data/blackbox-0.70.1/util/bstyleconvert.cc:364:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("window.label.unfocus.textColor", data/blackbox-0.70.1/util/bstyleconvert.cc:368:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("window.button.focus.picColor", data/blackbox-0.70.1/util/bstyleconvert.cc:372:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("window.button.unfocus.picColor", data/blackbox-0.70.1/util/bstyleconvert.cc:376:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("window.frame.focusColor", data/blackbox-0.70.1/util/bstyleconvert.cc:380:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("window.frame.unfocusColor", data/blackbox-0.70.1/util/bstyleconvert.cc:439:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("window.font", data/blackbox-0.70.1/util/bstyleconvert.cc:443:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("window.justify", data/blackbox-0.70.1/util/bstyleconvert.cc:449:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("toolbar.label.textColor", data/blackbox-0.70.1/util/bstyleconvert.cc:453:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("toolbar.windowLabel.textColor", data/blackbox-0.70.1/util/bstyleconvert.cc:457:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("toolbar.clock.textColor", data/blackbox-0.70.1/util/bstyleconvert.cc:461:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("toolbar.button.picColor", data/blackbox-0.70.1/util/bstyleconvert.cc:495:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("toolbar.font", data/blackbox-0.70.1/util/bstyleconvert.cc:499:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("toolbar.justify", data/blackbox-0.70.1/util/bstyleconvert.cc:505:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("menu.title.textColor", data/blackbox-0.70.1/util/bstyleconvert.cc:509:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("menu.frame.textColor", data/blackbox-0.70.1/util/bstyleconvert.cc:513:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("menu.frame.disableColor", data/blackbox-0.70.1/util/bstyleconvert.cc:517:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("menu.hilite.textColor", data/blackbox-0.70.1/util/bstyleconvert.cc:536:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("menu.title.font", data/blackbox-0.70.1/util/bstyleconvert.cc:540:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("menu.title.justify", data/blackbox-0.70.1/util/bstyleconvert.cc:544:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("menu.frame.font", data/blackbox-0.70.1/util/bstyleconvert.cc:548:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("menu.frame.justify", data/blackbox-0.70.1/util/bstyleconvert.cc:554:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("borderColor", data/blackbox-0.70.1/util/bstyleconvert.cc:558:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("borderWidth", data/blackbox-0.70.1/util/bstyleconvert.cc:562:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("bevelWidth", data/blackbox-0.70.1/util/bstyleconvert.cc:566:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("frameWidth", data/blackbox-0.70.1/util/bstyleconvert.cc:570:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("handleWidth", data/blackbox-0.70.1/util/bstyleconvert.cc:574:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res.read("rootCommand", ANALYSIS SUMMARY: Hits = 216 Lines analyzed = 20671 in approximately 0.59 seconds (34768 lines/second) Physical Source Lines of Code (SLOC) = 14968 Hits@level = [0] 115 [1] 141 [2] 65 [3] 4 [4] 6 [5] 0 Hits@level+ = [0+] 331 [1+] 216 [2+] 75 [3+] 10 [4+] 6 [5+] 0 Hits/KSLOC@level+ = [0+] 22.1138 [1+] 14.4308 [2+] 5.01069 [3+] 0.668092 [4+] 0.400855 [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.