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/splay-0.9.5.2/libs/soundinputstream.cc Examining data/splay-0.9.5.2/libs/fileinput.cc Examining data/splay-0.9.5.2/libs/httpinput.cc Examining data/splay-0.9.5.2/libs/soundplayer.cc Examining data/splay-0.9.5.2/libs/mpegtable.cc Examining data/splay-0.9.5.2/libs/filter.cc Examining data/splay-0.9.5.2/libs/filter_2.cc Examining data/splay-0.9.5.2/libs/mpeglayer1.cc Examining data/splay-0.9.5.2/libs/mpeglayer2.cc Examining data/splay-0.9.5.2/libs/bitwindow.cc Examining data/splay-0.9.5.2/libs/huffmantable.cc Examining data/splay-0.9.5.2/libs/mpegsound_locals.h Examining data/splay-0.9.5.2/libs/fileplayer.cc Examining data/splay-0.9.5.2/libs/rawplayer.cc Examining data/splay-0.9.5.2/libs/mpegtoraw.cc Examining data/splay-0.9.5.2/libs/rawtofile.cc Examining data/splay-0.9.5.2/libs/mpeglayer3.cc Examining data/splay-0.9.5.2/libs/mpegsound.h Examining data/splay-0.9.5.2/apps/multipleselect.cc Examining data/splay-0.9.5.2/apps/fileselect.cc Examining data/splay-0.9.5.2/apps/panel.cc Examining data/splay-0.9.5.2/apps/optionpanel.cc Examining data/splay-0.9.5.2/apps/moc_multi.cc Examining data/splay-0.9.5.2/apps/moc_file.cc Examining data/splay-0.9.5.2/apps/moc_panel.cc Examining data/splay-0.9.5.2/apps/moc_optionp.cc Examining data/splay-0.9.5.2/apps/multipleselect.h Examining data/splay-0.9.5.2/apps/fileselect.h Examining data/splay-0.9.5.2/apps/panel.h Examining data/splay-0.9.5.2/apps/optionpanel.h Examining data/splay-0.9.5.2/apps/xsplay.h Examining data/splay-0.9.5.2/apps/functions.cc Examining data/splay-0.9.5.2/apps/common.cc Examining data/splay-0.9.5.2/apps/splay.h Examining data/splay-0.9.5.2/apps/splay.cc Examining data/splay-0.9.5.2/apps/xsplay.cc FINAL RESULTS: data/splay-0.9.5.2/apps/functions.cc:39:3: [4] (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). strcpy(currentpath,path); data/splay-0.9.5.2/apps/functions.cc:56:3: [4] (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). strcpy(currentwildcard,wildcard); data/splay-0.9.5.2/apps/panel.cc:292:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(str,"xsplay: %s",errorstring); data/splay-0.9.5.2/apps/panel.cc:466:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(panel->cbuffer.status, data/splay-0.9.5.2/libs/fileplayer.cc:195:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr,server->getcrccheck() data/splay-0.9.5.2/libs/httpinput.cc:170:2: [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(request,httpstr); data/splay-0.9.5.2/libs/httpinput.cc:171:7: [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(request,purl); data/splay-0.9.5.2/libs/httpinput.cc:184:7: [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 (request, sptr); data/splay-0.9.5.2/libs/httpinput.cc:186:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (agent, " HTTP/1.0\r\nUser-Agent: %s/%s\r\n\r\n", data/splay-0.9.5.2/libs/httpinput.cc:188: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 (request, agent); data/splay-0.9.5.2/apps/common.cc:185:3: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srandom(time(&t)); data/splay-0.9.5.2/apps/common.cc:189:7: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. p=random()%(i+1); data/splay-0.9.5.2/apps/splay.cc:207:12: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while((c=getopt(argc,argv, data/splay-0.9.5.2/apps/xsplay.cc:571:12: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while((c=getopt(argc,argv, data/splay-0.9.5.2/libs/httpinput.cc:140: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. if(!(proxyurl=getenv("MP3_HTTP_PROXY"))) data/splay-0.9.5.2/libs/httpinput.cc:141:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if(!(proxyurl=getenv("http_proxy"))) data/splay-0.9.5.2/libs/httpinput.cc:142:15: [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. proxyurl = getenv("HTTP_PROXY"); data/splay-0.9.5.2/apps/common.cc:25:1: [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 *splay_list[MAXLISTSIZE]; data/splay-0.9.5.2/apps/common.cc:37: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. const char *splay_Sounderrors[SOUND_ERROR_UNKNOWN]= data/splay-0.9.5.2/apps/common.cc:98: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 songfilename[MAXFILENAMELENGTH*2]; data/splay-0.9.5.2/apps/common.cc:118: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 songfile[MAXFILENAMELENGTH]; data/splay-0.9.5.2/apps/fileselect.cc:156: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(selectedfilenumber_string, data/splay-0.9.5.2/apps/fileselect.cc:181: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 buffer[300]; data/splay-0.9.5.2/apps/fileselect.cc:192:21: [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. expression=new (char *)[regexpnum]; data/splay-0.9.5.2/apps/fileselect.h:39: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 selectedfilenumber_string[100]; data/splay-0.9.5.2/apps/functions.cc:30:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char currentpath[300]={0}; data/splay-0.9.5.2/apps/functions.cc:42:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char currentwildcard[300]={0}; data/splay-0.9.5.2/apps/optionpanel.cc:89: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(thread_string,"Buffer: %3d\n",value); data/splay-0.9.5.2/apps/optionpanel.h:27: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 thread_string[20]; data/splay-0.9.5.2/apps/panel.cc:289: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 str[250]; data/splay-0.9.5.2/apps/panel.cc:450: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(panel->cbuffer.number,"%d/%d",crun+1,no); data/splay-0.9.5.2/apps/panel.cc:501: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(panel->cbuffer.framestatus,"%2d:%2d",m,s); data/splay-0.9.5.2/apps/panel.cc:506: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(panel->cbuffer.framestatus, data/splay-0.9.5.2/apps/panel.h:74: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 number[20]; data/splay-0.9.5.2/apps/panel.h:75: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 status[100]; data/splay-0.9.5.2/apps/panel.h:76: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 framestatus[20]; data/splay-0.9.5.2/apps/splay.cc:239:31: [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). case 'k':splay_startframe=atoi(optarg); break; data/splay-0.9.5.2/apps/splay.h:15:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char *splay_list[MAXLISTSIZE]; data/splay-0.9.5.2/apps/xsplay.cc:353:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char songname[30+1]; data/splay-0.9.5.2/libs/bitwindow.cc: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 store[4]; data/splay-0.9.5.2/libs/fileinput.cc:25:32: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool Soundinputstreamfromfile::open(char *filename) data/splay-0.9.5.2/libs/fileinput.cc:35: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). else if((fp=fopen(filename,"r"))==NULL) data/splay-0.9.5.2/libs/fileplayer.cc:53:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd=open(device, O_WRONLY|O_NDELAY); data/splay-0.9.5.2/libs/fileplayer.cc:56:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd=open(device, O_WRONLY|O_NDELAY); data/splay-0.9.5.2/libs/fileplayer.cc:109: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(buff,"%d:%2.2f",min,sec); data/splay-0.9.5.2/libs/fileplayer.cc:188:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *modestring[4]={"stereo","joint stereo","dual channel","mono"}; data/splay-0.9.5.2/libs/httpinput.cc:116:9: [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). *port=atoi(++cptr); data/splay-0.9.5.2/libs/httpinput.cc:128: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 agent[50]; data/splay-0.9.5.2/libs/httpinput.cc:166: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(request,"GET "); data/splay-0.9.5.2/libs/httpinput.cc:247:32: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool Soundinputstreamfromhttp::open(char *url) data/splay-0.9.5.2/libs/mpegsound.h:156:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). virtual bool open(char *filename) =0; data/splay-0.9.5.2/libs/mpegsound.h:180:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool open(char *filename); data/splay-0.9.5.2/libs/mpegsound.h:202:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool open(char *filename); data/splay-0.9.5.2/libs/mpegsound.h:321: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 buffer[2*WINDOWSIZE]; data/splay-0.9.5.2/libs/mpegsound.h:429: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 store[4]; data/splay-0.9.5.2/libs/mpegsound.h:432: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 buffer[4096]; data/splay-0.9.5.2/libs/mpegtoraw.cc:55: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 store[4]; data/splay-0.9.5.2/libs/mpegtoraw.cc:145:5: [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(threadqueue.buffer+(threadqueue.tail*RAWDATASIZE),rawdata, data/splay-0.9.5.2/libs/mpegtoraw.cc:324: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 buf[10]; data/splay-0.9.5.2/libs/rawplayer.cc:35:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). handle=open("/dev/mixer",O_RDWR); data/splay-0.9.5.2/libs/rawplayer.cc:67:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((audiohandle=open(filename,O_WRONLY|O_NDELAY,0))==-1) data/splay-0.9.5.2/libs/soundinputstream.cc:43:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if(!st->open(filename)) data/splay-0.9.5.2/apps/panel.cc:530:26: [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. while(!panel->doneflag)usleep(100); data/splay-0.9.5.2/apps/panel.cc:531:36: [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. while(panel->initializelabelflag)usleep(100); data/splay-0.9.5.2/apps/splay.cc:292: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 (500*1000); data/splay-0.9.5.2/apps/xsplay.cc:296:7: [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. else usleep(100); data/splay-0.9.5.2/apps/xsplay.cc:323:30: [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. while(server->existthread())usleep(10); data/splay-0.9.5.2/apps/xsplay.cc:340:7: [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(100); data/splay-0.9.5.2/apps/xsplay.cc:454:27: [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. while(!Msgboxdone())usleep(100); data/splay-0.9.5.2/apps/xsplay.cc:494:20: [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. if(musics.stop)usleep(500); // Don't play data/splay-0.9.5.2/libs/fileinput.cc:51:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((c=getc(fp))<0) data/splay-0.9.5.2/libs/httpinput.cc:37: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). int result,bytes=strlen(string); data/splay-0.9.5.2/libs/httpinput.cc:81:10: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). return strncpy(dst, src, num); data/splay-0.9.5.2/libs/httpinput.cc:156: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((linelength=strlen(url)+100)<1024) data/splay-0.9.5.2/libs/httpinput.cc:163:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(purl,url,1023); data/splay-0.9.5.2/libs/httpinput.cc:224:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (purl,request+10,1023); data/splay-0.9.5.2/libs/httpinput.cc:262:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((c=getc(fp))<0) data/splay-0.9.5.2/libs/mpegtoraw.cc:143: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(200); data/splay-0.9.5.2/libs/mpegtoraw.cc:284:37: [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. while(!threadflags.criticalflag)usleep(1); data/splay-0.9.5.2/libs/mpegtoraw.cc:462:7: [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(200); data/splay-0.9.5.2/libs/mpegtoraw.cc:477:7: [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(200); data/splay-0.9.5.2/libs/mpegtoraw.cc:519:28: [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. while(threadflags.thread)usleep(10); // Wait for done... data/splay-0.9.5.2/libs/rawplayer.cc:174:32: [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. while(getprocessed()>quota)usleep(3); ANALYSIS SUMMARY: Hits = 83 Lines analyzed = 9568 in approximately 0.33 seconds (29036 lines/second) Physical Source Lines of Code (SLOC) = 7680 Hits@level = [0] 19 [1] 21 [2] 45 [3] 7 [4] 10 [5] 0 Hits@level+ = [0+] 102 [1+] 83 [2+] 62 [3+] 17 [4+] 10 [5+] 0 Hits/KSLOC@level+ = [0+] 13.2812 [1+] 10.8073 [2+] 8.07292 [3+] 2.21354 [4+] 1.30208 [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.