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/boinctui-2.5.1/src/nstatictext.cpp Examining data/boinctui-2.5.1/src/resultparse.cpp Examining data/boinctui-2.5.1/src/cfgform.h Examining data/boinctui-2.5.1/src/nhline.cpp Examining data/boinctui-2.5.1/src/kclog.cpp Examining data/boinctui-2.5.1/src/nmessagebox.cpp Examining data/boinctui-2.5.1/src/ngroup.cpp Examining data/boinctui-2.5.1/src/nselectlist.h Examining data/boinctui-2.5.1/src/nmenu.h Examining data/boinctui-2.5.1/src/net.h Examining data/boinctui-2.5.1/src/nscrollbar.cpp Examining data/boinctui-2.5.1/src/mainprog.cpp Examining data/boinctui-2.5.1/src/nview.cpp Examining data/boinctui-2.5.1/src/ngroup.h Examining data/boinctui-2.5.1/src/nprogram.h Examining data/boinctui-2.5.1/src/infopanel.h Examining data/boinctui-2.5.1/src/taskwin.h Examining data/boinctui-2.5.1/src/addmgrform.cpp Examining data/boinctui-2.5.1/src/resultparse.h Examining data/boinctui-2.5.1/src/cfg.h Examining data/boinctui-2.5.1/src/ncolorstring.cpp Examining data/boinctui-2.5.1/src/tui-main.cpp Examining data/boinctui-2.5.1/src/nview.h Examining data/boinctui-2.5.1/src/about.h Examining data/boinctui-2.5.1/src/helpwin.h Examining data/boinctui-2.5.1/src/nscrollview.cpp Examining data/boinctui-2.5.1/src/nevent.h Examining data/boinctui-2.5.1/src/nrect.h Examining data/boinctui-2.5.1/src/nmessagebox.h Examining data/boinctui-2.5.1/src/nselectlist.cpp Examining data/boinctui-2.5.1/src/nwin.h Examining data/boinctui-2.5.1/src/statwin.cpp Examining data/boinctui-2.5.1/src/cfg.cpp Examining data/boinctui-2.5.1/src/cfgform.cpp Examining data/boinctui-2.5.1/src/msgwin.h Examining data/boinctui-2.5.1/src/msgwin.cpp Examining data/boinctui-2.5.1/src/taskwin.cpp Examining data/boinctui-2.5.1/src/addprojectform.cpp Examining data/boinctui-2.5.1/src/nform.cpp Examining data/boinctui-2.5.1/src/nprogram.cpp Examining data/boinctui-2.5.1/src/helpwin.cpp Examining data/boinctui-2.5.1/src/nscrollbar.h Examining data/boinctui-2.5.1/src/about.cpp Examining data/boinctui-2.5.1/src/net.cpp Examining data/boinctui-2.5.1/src/srvdata.h Examining data/boinctui-2.5.1/src/ncolorstring.h Examining data/boinctui-2.5.1/src/nvline.cpp Examining data/boinctui-2.5.1/src/srvdata.cpp Examining data/boinctui-2.5.1/src/mainprog.h Examining data/boinctui-2.5.1/src/nscrollview.h Examining data/boinctui-2.5.1/src/nmenu.cpp Examining data/boinctui-2.5.1/src/taskinfowin.cpp Examining data/boinctui-2.5.1/src/topmenu.cpp Examining data/boinctui-2.5.1/src/nhline.h Examining data/boinctui-2.5.1/src/addmgrform.h Examining data/boinctui-2.5.1/src/mainwin.h Examining data/boinctui-2.5.1/src/kclog.h Examining data/boinctui-2.5.1/src/nstatictext.h Examining data/boinctui-2.5.1/src/nvline.h Examining data/boinctui-2.5.1/src/nform.h Examining data/boinctui-2.5.1/src/mainwin.cpp Examining data/boinctui-2.5.1/src/tuievent.h Examining data/boinctui-2.5.1/src/mbstring.h Examining data/boinctui-2.5.1/src/topmenu.h Examining data/boinctui-2.5.1/src/resultdom.cpp Examining data/boinctui-2.5.1/src/resultdom.h Examining data/boinctui-2.5.1/src/infopanel.cpp Examining data/boinctui-2.5.1/src/addprojectform.h Examining data/boinctui-2.5.1/src/taskinfowin.h Examining data/boinctui-2.5.1/src/mbstring.cpp Examining data/boinctui-2.5.1/src/statwin.h FINAL RESULTS: data/boinctui-2.5.1/src/cfg.cpp:42:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(fullname,"%s/%s",homepath,filename); data/boinctui-2.5.1/src/kclog.cpp:50:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmpfile,"%s/%s",getenv("TEMP"),filename); //для win32 используем юзерский temp data/boinctui-2.5.1/src/kclog.cpp:53:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmpfile,"/tmp/%s",filename); data/boinctui-2.5.1/src/kclog.cpp:88:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(kLog, fmt, args); data/boinctui-2.5.1/src/kclog.cpp:107:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(kLog, fmt, args); data/boinctui-2.5.1/src/ncolorstring.cpp:25:5: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(buf, sizeof(buf), fmt, vl); data/boinctui-2.5.1/src/net.cpp:89:5: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(req, sizeof(req), fmt, vl); data/boinctui-2.5.1/src/srvdata.cpp:231:5: [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(req, fmt); data/boinctui-2.5.1/src/cfg.cpp:39: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* homepath = getenv("HOME"); data/boinctui-2.5.1/src/kclog.cpp:50: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. sprintf(tmpfile,"%s/%s",getenv("TEMP"),filename); //для win32 используем юзерский temp data/boinctui-2.5.1/src/about.cpp:38:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/boinctui-2.5.1/src/addmgrform.cpp:110:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[129]; data/boinctui-2.5.1/src/cfg.cpp:80: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). pfile = fopen(fullname,"r"); data/boinctui-2.5.1/src/cfg.cpp:111:19: [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* pfile = fopen(fullname,"w"); data/boinctui-2.5.1/src/infopanel.cpp:109:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/boinctui-2.5.1/src/kclog.cpp:50:11: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). sprintf(tmpfile,"%s/%s",getenv("TEMP"),filename); //для win32 используем юзерский temp data/boinctui-2.5.1/src/kclog.cpp:53:11: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). sprintf(tmpfile,"/tmp/%s",filename); data/boinctui-2.5.1/src/kclog.cpp:55:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((kLog = fopen(tmpfile,"a")) == NULL) data/boinctui-2.5.1/src/kclog.cpp:55:21: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). if ((kLog = fopen(tmpfile,"a")) == NULL) data/boinctui-2.5.1/src/kclog.cpp:63:8: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). free(tmpfile); data/boinctui-2.5.1/src/msgwin.cpp: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 tbuf[128]; data/boinctui-2.5.1/src/ncolorstring.cpp:24:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/boinctui-2.5.1/src/net.cpp:42:32: [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). boincaddr.sin_port = htons(atoi(sport)); data/boinctui-2.5.1/src/net.cpp:88: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 req[1024]; data/boinctui-2.5.1/src/net.cpp:111: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 bufpart[1024]; //фрагмент data/boinctui-2.5.1/src/net.cpp:126:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&answbuf[totalBytesRcvd], bufpart, bytesRcvd); data/boinctui-2.5.1/src/resultdom.cpp:80: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 buff[256]; data/boinctui-2.5.1/src/resultdom.h:41:32: [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 getivalue() { return atoi(svalue.c_str());};//получить целочисленное data/boinctui-2.5.1/src/srvdata.cpp:229: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 req[1024]; data/boinctui-2.5.1/src/srvdata.cpp:230:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(req, "<boinc_gui_rpc_request>\n"); data/boinctui-2.5.1/src/srvdata.cpp:232:5: [2] (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 string. strcat(req, "\n</boinc_gui_rpc_request>\n\003"); data/boinctui-2.5.1/src/srvdata.cpp:301:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char md5digest[MD5_DIGEST_LENGTH]; data/boinctui-2.5.1/src/srvdata.cpp:307: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 shash[1024]; //строковое представление хэша data/boinctui-2.5.1/src/srvdata.cpp:309:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(shash+i*2,"%02x",md5digest[i]); data/boinctui-2.5.1/src/srvdata.cpp:362: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 req2[256]; data/boinctui-2.5.1/src/srvdata.cpp:511:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char md5digest[MD5_DIGEST_LENGTH]; data/boinctui-2.5.1/src/srvdata.cpp:517: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 shash[1024]; //строковое представление хэша data/boinctui-2.5.1/src/srvdata.cpp:519:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(shash+i*2,"%02x",md5digest[i]); data/boinctui-2.5.1/src/srvdata.cpp:521: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 sreq[1024]; data/boinctui-2.5.1/src/srvdata.cpp:567:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char md5digest[MD5_DIGEST_LENGTH]; data/boinctui-2.5.1/src/srvdata.cpp:573: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 shash[1024]; //строковое представление хэша data/boinctui-2.5.1/src/srvdata.cpp:575:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(shash+i*2,"%02x",md5digest[i]); data/boinctui-2.5.1/src/srvdata.cpp:577: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 sreq[1024]; data/boinctui-2.5.1/src/srvdata.cpp:650: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 sreq[1024]; data/boinctui-2.5.1/src/statwin.cpp:165:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128] = "?"; data/boinctui-2.5.1/src/taskinfowin.cpp:265:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/boinctui-2.5.1/src/taskwin.cpp:440: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 sdone[64]; data/boinctui-2.5.1/src/taskwin.cpp:442:7: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(sdone," - "); data/boinctui-2.5.1/src/taskwin.cpp:444: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(sdone,"%6.2f",100*fraction_done->getdvalue()); data/boinctui-2.5.1/src/taskwin.cpp:506:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/boinctui-2.5.1/src/about.cpp:37:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). mvwprintw(win,0,getwidth()/2-(strlen(caption)/2),caption); data/boinctui-2.5.1/src/about.cpp:40:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). mvwprintw(win,3,getwidth()/2-(strlen(buf)/2),buf); data/boinctui-2.5.1/src/about.cpp:41:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). mvwprintw(win,5,getwidth()/2-(strlen("(c) Sergey Suslov")/2),"(c) Sergey Suslov"); data/boinctui-2.5.1/src/about.cpp:42:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). mvwprintw(win,6,getwidth()/2-(strlen("suleman1971@gmail.com")/2),"suleman1971@gmail.com"); data/boinctui-2.5.1/src/addmgrform.cpp:111:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf, gettitle(), 128); data/boinctui-2.5.1/src/cfg.cpp:41: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). fullname = (char*)malloc(strlen(homepath)+strlen(filename)+2); data/boinctui-2.5.1/src/cfg.cpp:41: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). fullname = (char*)malloc(strlen(homepath)+strlen(filename)+2); data/boinctui-2.5.1/src/cfg.cpp:114:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fwrite(cfg->toxmlstring().c_str(),1, strlen(cfg->toxmlstring().c_str()),pfile); data/boinctui-2.5.1/src/cfg.cpp:122: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). if ( (strlen(shost) == 0)||(strlen(sport) == 0) ) data/boinctui-2.5.1/src/cfg.cpp:122:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( (strlen(shost) == 0)||(strlen(sport) == 0) ) data/boinctui-2.5.1/src/cfg.cpp:139: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). if (strlen(spwd) > 0) data/boinctui-2.5.1/src/helpwin.cpp:33:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). mvwprintw(win,0,getwidth()/2-(strlen(caption)/2),caption); data/boinctui-2.5.1/src/mainprog.cpp:526:2: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(10000); //10 milisec data/boinctui-2.5.1/src/mbstring.cpp:25:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int bsize = strlen(s); //количество байт data/boinctui-2.5.1/src/mbstring.cpp:47:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int bsize = strlen(s); //количество байт data/boinctui-2.5.1/src/mbstring.cpp:68: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). if (strlen(s) == 0) data/boinctui-2.5.1/src/mbstring.cpp:70:19: [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). char* p = s + strlen(s) - 1; data/boinctui-2.5.1/src/mbstring.cpp:87: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). if (strlen(s) == 0) data/boinctui-2.5.1/src/mbstring.cpp:97:19: [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). memmove(s, p, strlen(p)); data/boinctui-2.5.1/src/msgwin.cpp:85: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). int slen = strlen(s); data/boinctui-2.5.1/src/net.cpp:95:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (send(hsock, req, strlen(req), 0) != (int)strlen(req)) data/boinctui-2.5.1/src/net.cpp:95:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (send(hsock, req, strlen(req), 0) != (int)strlen(req)) data/boinctui-2.5.1/src/nform.cpp:64: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). this->title = (char*)malloc(strlen(title)+3); data/boinctui-2.5.1/src/nform.cpp:65: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). snprintf(this->title, strlen(title)+3," %s ",title); data/boinctui-2.5.1/src/nmenu.cpp:135:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(name) > 0) data/boinctui-2.5.1/src/nmessagebox.cpp:92:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int bsize = strlen(text); //количество байт data/boinctui-2.5.1/src/resultdom.cpp:40: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). if (strlen(name) > 0) data/boinctui-2.5.1/src/resultparse.cpp:46:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for(char* p = x1 + strlen(teg1); p < x2; p++) data/boinctui-2.5.1/src/resultparse.cpp:120:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tmp, content, len); data/boinctui-2.5.1/src/resultparse.cpp:126: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). for (uint i = 0; i < strlen(tmp); i++) data/boinctui-2.5.1/src/srvdata.cpp:253: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). b = b + strlen(teg1); data/boinctui-2.5.1/src/srvdata.cpp:258:37: [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). b = (char*)stripinvalidtag(b, strlen(b)); //убираем кривые теги data/boinctui-2.5.1/src/srvdata.cpp:262: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). Item* dom = xmlparse(b, strlen(b), errmsg); //парсим xml data/boinctui-2.5.1/src/srvdata.cpp:304:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). MD5_Update(&c, snonce, strlen(snonce)); data/boinctui-2.5.1/src/srvdata.cpp:305: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). MD5_Update(&c, pwd , strlen(pwd)); data/boinctui-2.5.1/src/srvdata.cpp:514: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). MD5_Update(&c, pass , strlen(pass)); data/boinctui-2.5.1/src/srvdata.cpp:515: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). MD5_Update(&c, email, strlen(email)); data/boinctui-2.5.1/src/srvdata.cpp:570: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). MD5_Update(&c, pass , strlen(pass)); data/boinctui-2.5.1/src/srvdata.cpp:571: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). MD5_Update(&c, email, strlen(email)); data/boinctui-2.5.1/src/srvdata.cpp:641: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). if (strlen(url) > 0) data/boinctui-2.5.1/src/srvdata.cpp:946:6: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(100000); //100 milisec data/boinctui-2.5.1/src/taskinfowin.cpp:163: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 ((int)strlen((*it2)->getname()) > maxlen1) data/boinctui-2.5.1/src/taskinfowin.cpp:164: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). maxlen1 = strlen((*it2)->getname()); data/boinctui-2.5.1/src/taskinfowin.cpp:224:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). mvwprintw(win,0,getwidth()/2-(strlen(caption)/2), this->caption.c_str()); ANALYSIS SUMMARY: Hits = 94 Lines analyzed = 10317 in approximately 0.31 seconds (33777 lines/second) Physical Source Lines of Code (SLOC) = 7759 Hits@level = [0] 23 [1] 44 [2] 40 [3] 2 [4] 8 [5] 0 Hits@level+ = [0+] 117 [1+] 94 [2+] 50 [3+] 10 [4+] 8 [5+] 0 Hits/KSLOC@level+ = [0+] 15.0793 [1+] 12.115 [2+] 6.44413 [3+] 1.28883 [4+] 1.03106 [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.