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/bbtime-0.1.5/Image.cc Examining data/bbtime-0.1.5/LinkedList.cc Examining data/bbtime-0.1.5/Baseresource.cc Examining data/bbtime-0.1.5/Basewindow.cc Examining data/bbtime-0.1.5/Basemenu.cc Examining data/bbtime-0.1.5/timemenu.cc Examining data/bbtime-0.1.5/bbtime.cc Examining data/bbtime-0.1.5/resource.cc FINAL RESULTS: data/bbtime-0.1.5/Basemenu.cc:533:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(menu.label, "%s", l); data/bbtime-0.1.5/Baseresource.cc:43:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(bbtool->config_filename, "%s/.bbtoolsrc", homedir); data/bbtime-0.1.5/Baseresource.cc:57:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(bbtool->config_filename, "%s/.blackboxrc", homedir); data/bbtime-0.1.5/Baseresource.cc:458:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(colorclass, "%s.Color", rclass); data/bbtime-0.1.5/Baseresource.cc:459:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(colorname, "%s.color", rname); data/bbtime-0.1.5/Baseresource.cc:469:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(bbcolorclass, "%s.Color", bbrclass); data/bbtime-0.1.5/Baseresource.cc:470:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(bbcolorname, "%s.color", bbrname); data/bbtime-0.1.5/Baseresource.cc:523:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(colorclass, "%s.Color", rclass); data/bbtime-0.1.5/Baseresource.cc:524:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(colorname, "%s.color", rname); data/bbtime-0.1.5/Baseresource.cc:526:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(colortoclass, "%s.ColorTo", rclass); data/bbtime-0.1.5/Baseresource.cc:527:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(colortoname, "%s.colorTo", rname); data/bbtime-0.1.5/Baseresource.cc:542:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(bbcolorclass, "%s.Color", bbrclass); data/bbtime-0.1.5/Baseresource.cc:543:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(bbcolorname, "%s.color", bbrname); data/bbtime-0.1.5/Baseresource.cc:544:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(bbcolortoclass, "%s.ColorTo", bbrclass); data/bbtime-0.1.5/Baseresource.cc:545:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(bbcolortoname, "%s.colorTo", bbrname); data/bbtime-0.1.5/Baseresource.cc:719:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(colorclass, "%s.Color", rclass); data/bbtime-0.1.5/Baseresource.cc:720:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(colorname, "%s.color", rname); data/bbtime-0.1.5/Baseresource.cc:730:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(bbcolorclass, "%s.Color", bbrclass); data/bbtime-0.1.5/Baseresource.cc:731:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(bbcolorname, "%s.color", bbrname); data/bbtime-0.1.5/Baseresource.cc:783:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(colorclass, "%s.Color", rclass); data/bbtime-0.1.5/Baseresource.cc:784:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(colorname, "%s.color", rname); data/bbtime-0.1.5/Baseresource.cc:786:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(colortoclass, "%s.ColorTo", rclass); data/bbtime-0.1.5/Baseresource.cc:787:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(colortoname, "%s.colorTo", rname); data/bbtime-0.1.5/Baseresource.cc:802:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(bbcolorclass, "%s.Color", bbrclass); data/bbtime-0.1.5/Baseresource.cc:803:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(bbcolorname, "%s.color", bbrname); data/bbtime-0.1.5/Baseresource.cc:804:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(bbcolortoclass, "%s.ColorTo", bbrclass); data/bbtime-0.1.5/Baseresource.cc:805:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(bbcolortoname, "%s.colorTo", bbrname); data/bbtime-0.1.5/timemenu.cc:130:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(bbtool->getResource()->timefriend[number].name,t); data/bbtime-0.1.5/Baseresource.cc:41: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 *homedir = getenv("HOME"); data/bbtime-0.1.5/Baseresource.cc:55: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. char *homedir = getenv("HOME"); data/bbtime-0.1.5/bbtime.cc:127: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], *time_string = (char *) 0; data/bbtime-0.1.5/bbtime.cc:333: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 t[1024]; data/bbtime-0.1.5/bbtime.cc:337: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 t[9]; data/bbtime-0.1.5/bbtime.cc:341:7: [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(t, "%02d.%02d.%02d", tt->tm_mday, tt->tm_mon + 1, data/bbtime-0.1.5/bbtime.cc:344:7: [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(t, "%02d/%02d/%02d", tt->tm_mon + 1, tt->tm_mday, data/bbtime-0.1.5/bbtime.cc:348:6: [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(t, " %02d:%02d ", hour, minute); data/bbtime-0.1.5/bbtime.cc:350:7: [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(t, "%02d:%02d %cm", data/bbtime-0.1.5/resource.cc:241:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char positionstring[11]; data/bbtime-0.1.5/resource.cc:485: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];// *time_string = (char *) 0; data/bbtime-0.1.5/resource.cc:500: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 rname[24]; data/bbtime-0.1.5/resource.cc:501: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 rclass[24]; data/bbtime-0.1.5/resource.cc:505: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(rname,"bbtime.friend.%d.name",nr); data/bbtime-0.1.5/resource.cc:506: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(rclass,"Bbtime.Friend.%d.Name",nr); data/bbtime-0.1.5/resource.cc:521: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(rname,"bbtime.friend.%d.offset",nr); data/bbtime-0.1.5/resource.cc:522: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(rclass,"Bbtime.Friend.%d.Offset",nr); data/bbtime-0.1.5/timemenu.cc:106: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 t[1024]; data/bbtime-0.1.5/timemenu.cc:110: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 t[9]; data/bbtime-0.1.5/timemenu.cc:114:7: [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(t, "%02d.%02d.%02d", tx->tm_mday, tx->tm_mon + 1, data/bbtime-0.1.5/timemenu.cc:117:7: [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(t, "%02d/%02d/%02d", tx->tm_mon + 1, tx->tm_mday, data/bbtime-0.1.5/timemenu.cc:121:6: [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(t, " %02d:%02d ", hour, minute); data/bbtime-0.1.5/timemenu.cc:123:6: [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(t, "%02d:%02d %cm", data/bbtime-0.1.5/Basemenu.cc:219:4: [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). strlen(((menu.label) ? menu.label : "Blackbox Menu"))); data/bbtime-0.1.5/Basemenu.cc:229: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). XTextWidth(blackbox->menuFont(), *itmp->u, strlen(*itmp->u)); data/bbtime-0.1.5/Basemenu.cc:232: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). XTextWidth(blackbox->menuFont(), itmp->l, strlen(itmp->l)); data/bbtime-0.1.5/Basemenu.cc:301:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(((menu.label) ? menu.label : "Blackbox Menu"))); data/bbtime-0.1.5/Basemenu.cc:308:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(((menu.label) ? menu.label : data/bbtime-0.1.5/Basemenu.cc:314:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(((menu.label) ? menu.label : "Blackbox Menu"))); data/bbtime-0.1.5/Basemenu.cc:321:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(((menu.label) ? menu.label : data/bbtime-0.1.5/Basemenu.cc:326:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(((menu.label) ? menu.label : "Blackbox Menu"))); data/bbtime-0.1.5/Basemenu.cc:465:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen((item->ulabel()) ? *item->ulabel() : item->label()))); data/bbtime-0.1.5/Basemenu.cc:473:7: [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). strlen((item->ulabel()) ? *item->ulabel() : data/bbtime-0.1.5/Basemenu.cc:500:36: [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). *item->ulabel(), strlen(*item->ulabel())); data/bbtime-0.1.5/Basemenu.cc:504: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). item->label(), strlen(item->label())); data/bbtime-0.1.5/Basemenu.cc:514:36: [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). *item->ulabel(), strlen(*item->ulabel())); data/bbtime-0.1.5/Basemenu.cc:518: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). item->label(), strlen(item->label())); data/bbtime-0.1.5/Basemenu.cc:532: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). menu.label = new char[strlen(l) + 1]; data/bbtime-0.1.5/Basemenu.cc:696:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(((menu.label) ? menu.label : "Blackbox Menu"))); data/bbtime-0.1.5/Basemenu.cc:702:7: [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). strlen(((menu.label) ? menu.label : data/bbtime-0.1.5/Basemenu.cc:708:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(((menu.label) ? menu.label : "Blackbox Menu"))); data/bbtime-0.1.5/Basemenu.cc:715:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(((menu.label) ? menu.label : data/bbtime-0.1.5/Basemenu.cc:720:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(((menu.label) ? menu.label : "Blackbox Menu"))); data/bbtime-0.1.5/Baseresource.cc:42:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). bbtool->config_filename = new char[strlen(homedir) + 32]; data/bbtime-0.1.5/Baseresource.cc:56:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). bbtool->config_filename = new char[strlen(homedir) + 32]; data/bbtime-0.1.5/Baseresource.cc:181:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(value.addr); data/bbtime-0.1.5/Baseresource.cc:185:6: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(filename, value.addr, len); data/bbtime-0.1.5/Baseresource.cc:210:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len=strlen(DEFAULT_CONF); data/bbtime-0.1.5/Baseresource.cc:213:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(style.conf_filename,DEFAULT_CONF, len); data/bbtime-0.1.5/Baseresource.cc:264: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). int len=strlen(DEFAULT_NOBB); data/bbtime-0.1.5/Baseresource.cc:267:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(style.conf_filename,DEFAULT_NOBB, len); data/bbtime-0.1.5/Baseresource.cc:334: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). int len=strlen(DEFAULT_CONF); data/bbtime-0.1.5/Baseresource.cc:337:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(style.conf_filename,DEFAULT_CONF, len); data/bbtime-0.1.5/Baseresource.cc:352:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len=strlen(DEFAULT_CONF); data/bbtime-0.1.5/Baseresource.cc:355:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(style.conf_filename,DEFAULT_CONF, len); data/bbtime-0.1.5/Baseresource.cc:455: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). int clen = strlen(rclass) + 8, nlen = strlen(rname) + 8; data/bbtime-0.1.5/Baseresource.cc:455:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int clen = strlen(rclass) + 8, nlen = strlen(rname) + 8; data/bbtime-0.1.5/Baseresource.cc:465: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). clen = strlen(bbrclass) + 8, nlen = strlen(bbrname) + 8; data/bbtime-0.1.5/Baseresource.cc:465:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). clen = strlen(bbrclass) + 8, nlen = strlen(bbrname) + 8; data/bbtime-0.1.5/Baseresource.cc:520: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). int clen = strlen(rclass) + 10, nlen = strlen(rname) + 10; data/bbtime-0.1.5/Baseresource.cc:520: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). int clen = strlen(rclass) + 10, nlen = strlen(rname) + 10; data/bbtime-0.1.5/Baseresource.cc:535: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). clen = strlen(bbrclass) + 10; data/bbtime-0.1.5/Baseresource.cc:536: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). nlen = strlen(bbrname) + 10; data/bbtime-0.1.5/Baseresource.cc:716: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). int clen = strlen(rclass) + 8, nlen = strlen(rname) + 8; data/bbtime-0.1.5/Baseresource.cc:716:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int clen = strlen(rclass) + 8, nlen = strlen(rname) + 8; data/bbtime-0.1.5/Baseresource.cc:726: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). clen = strlen(bbrclass) + 8, nlen = strlen(bbrname) + 8; data/bbtime-0.1.5/Baseresource.cc:726:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). clen = strlen(bbrclass) + 8, nlen = strlen(bbrname) + 8; data/bbtime-0.1.5/Baseresource.cc:780: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). int clen = strlen(rclass) + 10, nlen = strlen(rname) + 10; data/bbtime-0.1.5/Baseresource.cc:780: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). int clen = strlen(rclass) + 10, nlen = strlen(rname) + 10; data/bbtime-0.1.5/Baseresource.cc:795: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). clen = strlen(bbrclass) + 10; data/bbtime-0.1.5/Baseresource.cc:796: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). nlen = strlen(bbrname) + 10; data/bbtime-0.1.5/bbtime.cc:151:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen("00:00000")) + (resource->frame.bevelWidth * 2); data/bbtime-0.1.5/bbtime.cc:357: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). int len = strlen(t); data/bbtime-0.1.5/resource.cc:276:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(positionstring, "-0-0", 5); data/bbtime-0.1.5/resource.cc:278:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(positionstring, value.addr, strlen(value.addr)+1); data/bbtime-0.1.5/resource.cc:278:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strncpy(positionstring, value.addr, strlen(value.addr)+1); data/bbtime-0.1.5/resource.cc:281:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(positionstring, bbtool->position, strlen(bbtool->position)+1); data/bbtime-0.1.5/resource.cc:281: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). strncpy(positionstring, bbtool->position, strlen(bbtool->position)+1); data/bbtime-0.1.5/resource.cc:458: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). int len=strlen(value.addr); data/bbtime-0.1.5/resource.cc:461:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(report.strftimeFormat,value.addr,len); data/bbtime-0.1.5/resource.cc:466:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len=strlen("%H:%M"); data/bbtime-0.1.5/resource.cc:469:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(report.strftimeFormat,"%H:%M",len); data/bbtime-0.1.5/resource.cc:471:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len=strlen("%I:%M %p"); data/bbtime-0.1.5/resource.cc:474:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(report.strftimeFormat,"%I:%M %p",len); data/bbtime-0.1.5/resource.cc:491: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). time_len=strlen("00:00000"); data/bbtime-0.1.5/resource.cc:510: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). int len=strlen(value.addr); data/bbtime-0.1.5/resource.cc:514:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(timefriend[nr].name,value.addr,len); data/bbtime-0.1.5/resource.cc:562: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). int len=strlen(value.addr); data/bbtime-0.1.5/resource.cc:566:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(timefriend[0].name,value.addr,len); data/bbtime-0.1.5/resource.cc:569: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). int len=strlen("/me"); data/bbtime-0.1.5/resource.cc:572:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(timefriend[0].name,"/me",len); data/bbtime-0.1.5/timemenu.cc:39: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). word_length[i]=strlen(bbtool->getResource()->timefriend[i].name); data/bbtime-0.1.5/timemenu.cc:67: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). word_length[i]=strlen(bbtool->getResource()->timefriend[i].name); data/bbtime-0.1.5/timemenu.cc:129:3: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(bbtool->getResource()->timefriend[number].name," "); ANALYSIS SUMMARY: Hits = 122 Lines analyzed = 4586 in approximately 0.13 seconds (35140 lines/second) Physical Source Lines of Code (SLOC) = 3602 Hits@level = [0] 73 [1] 71 [2] 21 [3] 2 [4] 28 [5] 0 Hits@level+ = [0+] 195 [1+] 122 [2+] 51 [3+] 30 [4+] 28 [5+] 0 Hits/KSLOC@level+ = [0+] 54.1366 [1+] 33.8701 [2+] 14.1588 [3+] 8.32871 [4+] 7.77346 [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.