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/freewheeling-0.6.4/MacOSX/FweelinMac.h Examining data/freewheeling-0.6.4/MacOSX/SDLMain.h Examining data/freewheeling-0.6.4/src/elastin/elastin.cc Examining data/freewheeling-0.6.4/src/elastin/elastin.h Examining data/freewheeling-0.6.4/src/fweelin_amixer.cc Examining data/freewheeling-0.6.4/src/fweelin_amixer.h Examining data/freewheeling-0.6.4/src/fweelin_audioio.h Examining data/freewheeling-0.6.4/src/fweelin_block.cc Examining data/freewheeling-0.6.4/src/fweelin_block.h Examining data/freewheeling-0.6.4/src/fweelin_browser.cc Examining data/freewheeling-0.6.4/src/fweelin_browser.h Examining data/freewheeling-0.6.4/src/fweelin_config.h Examining data/freewheeling-0.6.4/src/fweelin_core_dsp.cc Examining data/freewheeling-0.6.4/src/fweelin_core_dsp.h Examining data/freewheeling-0.6.4/src/fweelin_datatypes.cc Examining data/freewheeling-0.6.4/src/fweelin_datatypes.h Examining data/freewheeling-0.6.4/src/fweelin_event.cc Examining data/freewheeling-0.6.4/src/fweelin_event.h Examining data/freewheeling-0.6.4/src/fweelin_fluidsynth.h Examining data/freewheeling-0.6.4/src/fweelin_logo.h Examining data/freewheeling-0.6.4/src/fweelin_looplibrary.h Examining data/freewheeling-0.6.4/src/fweelin_mem.cc Examining data/freewheeling-0.6.4/src/fweelin_mem.h Examining data/freewheeling-0.6.4/src/fweelin_midiio.cc Examining data/freewheeling-0.6.4/src/fweelin_midiio.h Examining data/freewheeling-0.6.4/src/fweelin_osc.cc Examining data/freewheeling-0.6.4/src/fweelin_osc.h Examining data/freewheeling-0.6.4/src/fweelin_paramset.cc Examining data/freewheeling-0.6.4/src/fweelin_paramset.h Examining data/freewheeling-0.6.4/src/fweelin_rcu.cc Examining data/freewheeling-0.6.4/src/fweelin_rcu.h Examining data/freewheeling-0.6.4/src/fweelin_sdlio.cc Examining data/freewheeling-0.6.4/src/fweelin_sdlio.h Examining data/freewheeling-0.6.4/src/fweelin_videoio.cc Examining data/freewheeling-0.6.4/src/fweelin_videoio.h Examining data/freewheeling-0.6.4/src/stacktrace.h Examining data/freewheeling-0.6.4/src/fweelin_fluidsynth.cc Examining data/freewheeling-0.6.4/src/fweelin_core.h Examining data/freewheeling-0.6.4/src/stacktrace.c Examining data/freewheeling-0.6.4/src/fweelin_core.cc Examining data/freewheeling-0.6.4/src/fweelin_videoio_displays.cc Examining data/freewheeling-0.6.4/src/fweelin_audioio.cc Examining data/freewheeling-0.6.4/src/fweelin.cc Examining data/freewheeling-0.6.4/src/fweelin_config.cc FINAL RESULTS: data/freewheeling-0.6.4/src/elastin/elastin.h:14:20: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define DEBUGPRINT printf data/freewheeling-0.6.4/src/fweelin_browser.cc:46:5: [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(rename_tmpbuf,oldname); data/freewheeling-0.6.4/src/fweelin_browser.cc:259:5: [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(filename,new_filename); data/freewheeling-0.6.4/src/fweelin_browser.cc:1104:9: [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(s->name,nw); data/freewheeling-0.6.4/src/fweelin_browser.h:61:7: [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(name,n); data/freewheeling-0.6.4/src/fweelin_browser.h:287:7: [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(i->name,nw); data/freewheeling-0.6.4/src/fweelin_config.cc:124:17: [4] (shell) system: 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. int ret = system(tmp3); data/freewheeling-0.6.4/src/fweelin_config.cc:136:15: [4] (shell) system: 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. int ret = system(buf2); data/freewheeling-0.6.4/src/fweelin_config.cc:648:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.cc:655: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(nw->name,(char *)name); data/freewheeling-0.6.4/src/fweelin_config.cc:661:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.cc:669:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.cc:705:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(basebuf,"%s",str_base); data/freewheeling-0.6.4/src/fweelin_config.cc:741:11: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.cc:806:11: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.cc:917:11: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.cc:1014:11: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.cc:1090:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.cc:1100:7: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.cc:1106:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.cc:1155:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf,"%s",str_base); data/freewheeling-0.6.4/src/fweelin_config.cc:1176:15: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.cc:1216:11: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.cc:1292:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.cc:1839:11: [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(librarypath,homedir); data/freewheeling-0.6.4/src/fweelin_config.cc:1840:11: [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(librarypath,(char *) &n[1]); data/freewheeling-0.6.4/src/fweelin_config.cc:1843:11: [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(librarypath,(char *) n); data/freewheeling-0.6.4/src/fweelin_config.cc:1901:11: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.cc:1910:11: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.cc:1920:11: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.cc:1979:15: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.cc:2012:15: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.cc:2053:15: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.cc:2121:11: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.cc:2300:9: [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(nw->name,(char*)n); data/freewheeling-0.6.4/src/fweelin_config.cc:2439:11: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.cc:2447:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.cc:2665:5: [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(name,(char *) nn); data/freewheeling-0.6.4/src/fweelin_config.cc:2722:5: [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(name,(char *) nn); data/freewheeling-0.6.4/src/fweelin_config.cc:2792:5: [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(nw->title,(char*)n); data/freewheeling-0.6.4/src/fweelin_config.cc:2995:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.cc:3051:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.cc:3093:9: [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(text1,(char*)nn); data/freewheeling-0.6.4/src/fweelin_config.cc:3102:9: [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(text0,(char*)nn); data/freewheeling-0.6.4/src/fweelin_config.cc:3229:7: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.cc:3288:9: [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(nw->name,(char*)n); data/freewheeling-0.6.4/src/fweelin_config.cc:3296:9: [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(nw->filename,(char*)n); data/freewheeling-0.6.4/src/fweelin_config.cc:3363:9: [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(nw->name,(char*)n);; data/freewheeling-0.6.4/src/fweelin_config.cc:3439:7: [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(s,str); data/freewheeling-0.6.4/src/fweelin_config.cc:3472:5: [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(nw->name,name); data/freewheeling-0.6.4/src/fweelin_config.cc:3645:11: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.cc:3652:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FWEELIN_ERROR_COLOR_ON data/freewheeling-0.6.4/src/fweelin_config.h:672:5: [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(this->name,name); data/freewheeling-0.6.4/src/fweelin_config.h:711:5: [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(this->val,val); data/freewheeling-0.6.4/src/fweelin_config.h:726:7: [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(this->name,name); data/freewheeling-0.6.4/src/fweelin_config.h:730:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(this->name,"%s/%s",FWEELIN_DATADIR,name); data/freewheeling-0.6.4/src/fweelin_core.cc:75:5: [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(this->name,name); data/freewheeling-0.6.4/src/fweelin_core.cc:211:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(*filename_ptr,"%s-%s-%s", data/freewheeling-0.6.4/src/fweelin_core.cc:214:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(*filename_ptr,"%s-%s", data/freewheeling-0.6.4/src/fweelin_core.cc:314: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(ll->l_filename,filename); data/freewheeling-0.6.4/src/fweelin_core.cc:1003:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf,"mv \"%s\" \"%s\"",tmp,tmp2); data/freewheeling-0.6.4/src/fweelin_core.cc:1005:17: [4] (shell) system: 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. int ret = system(buf); data/freewheeling-0.6.4/src/fweelin_core.cc:1372:9: [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((*new_loop)->name,loopname); data/freewheeling-0.6.4/src/fweelin_core.h:567:7: [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(filename,fn); data/freewheeling-0.6.4/src/fweelin_core.h:601:7: [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(filename,fn); data/freewheeling-0.6.4/src/fweelin_core.h:856:7: [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(l->name,nw); data/freewheeling-0.6.4/src/fweelin_midiio.cc:93:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(portname, MIDI_CLIENT_NAME " IN %d", l1+1); data/freewheeling-0.6.4/src/fweelin_midiio.cc:100:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(portname, MIDI_CLIENT_NAME " OUT %d", l1+1); data/freewheeling-0.6.4/src/fweelin_midiio.cc:159:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(sourcename, MIDI_CLIENT_NAME " OUT %d", i+1); data/freewheeling-0.6.4/src/fweelin_midiio.cc:372:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(portname, MIDI_CLIENT_NAME " IN %d", l1+1); data/freewheeling-0.6.4/src/fweelin_midiio.cc:381:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(portname, MIDI_CLIENT_NAME " OUT %d", l1+1); data/freewheeling-0.6.4/src/fweelin_paramset.h:38:7: [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(this->name,name); data/freewheeling-0.6.4/src/fweelin_paramset.h:69:7: [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(this->name,name); data/freewheeling-0.6.4/src/fweelin_paramset.h:87:5: [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(this->name,name); data/freewheeling-0.6.4/src/fweelin_videoio.cc:1826:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp,"%s %.1f mb (%d streams)", data/freewheeling-0.6.4/src/stacktrace.c:158:4: [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. execl("/bin/sh", "/bin/sh", "-c", command, NULL); data/freewheeling-0.6.4/src/stacktrace.c:347: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(buffer, global_progname); data/freewheeling-0.6.4/src/stacktrace.c:358:13: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. if (3 == sscanf(buffer, "%lx %c %s", &addr, &type, name)) data/freewheeling-0.6.4/src/stacktrace.c:394:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "[%d] 0x%08lx <%s + 0x%lx> %c\n", data/freewheeling-0.6.4/src/stacktrace.c:427:3: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(cmd, format, args); data/freewheeling-0.6.4/src/fweelin_block.cc:271:3: [3] (random) srand: 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. srand(time(NULL)); data/freewheeling-0.6.4/src/fweelin_config.cc:82:19: [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/freewheeling-0.6.4/src/fweelin_config.cc:145:19: [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/freewheeling-0.6.4/src/fweelin_config.cc:1837: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. char *homedir = getenv("HOME"); data/freewheeling-0.6.4/src/fweelin_osc.cc:131:25: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. char *res = realpath(loopfile.name.c_str(), buf); data/freewheeling-0.6.4/src/elastin/elastin.cc:668: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(&(bufs[ch][0]),&(tempbufs[ch][0]), data/freewheeling-0.6.4/src/elastin/elastin.cc:764:6: [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(&(bufs[ch][bufidx]),&(sbufs[ch][chunkidx]), data/freewheeling-0.6.4/src/fweelin.cc:91: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/freewheeling-0.6.4/src/fweelin_amixer.cc:64:12: [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 result[10]; data/freewheeling-0.6.4/src/fweelin_amixer.cc:153:21: [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). numid = atoi(str); data/freewheeling-0.6.4/src/fweelin_amixer.cc:158:43: [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). snd_ctl_elem_id_set_numid(id, atoi(str)); data/freewheeling-0.6.4/src/fweelin_amixer.cc:185:13: [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[64]; data/freewheeling-0.6.4/src/fweelin_amixer.cc:213:43: [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). snd_ctl_elem_id_set_index(id, atoi(str)); data/freewheeling-0.6.4/src/fweelin_amixer.cc:218:44: [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). snd_ctl_elem_id_set_device(id, atoi(str)); data/freewheeling-0.6.4/src/fweelin_amixer.cc:223:47: [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). snd_ctl_elem_id_set_subdevice(id, atoi(str)); data/freewheeling-0.6.4/src/fweelin_amixer.cc:588:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). tmp = atoi(ptr) > 0 ? 1 : 0; data/freewheeling-0.6.4/src/fweelin_amixer.cc:663: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 numid_str[256], data/freewheeling-0.6.4/src/fweelin_amixer.cc:689: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 cardstr[256]; data/freewheeling-0.6.4/src/fweelin_audioio.cc:273:14: [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). int AudioIO::open () { data/freewheeling-0.6.4/src/fweelin_audioio.cc:328: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[255]; data/freewheeling-0.6.4/src/fweelin_audioio.h:39:7: [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). int open (); data/freewheeling-0.6.4/src/fweelin_block.cc:316: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(obuf[0], &ibuf[0][startframe], sizeof(float) * numframes); data/freewheeling-0.6.4/src/fweelin_block.cc:317: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(obuf[1], &ibuf[1][startframe], sizeof(float) * numframes); data/freewheeling-0.6.4/src/fweelin_block.cc:319: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(obuf[0], &ibuf[0][startframe], sizeof(float) * numframes); data/freewheeling-0.6.4/src/fweelin_block.cc:1147: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(&subcur->buf[subofs],&cur->buf[curofs],n*sizeof(sample_t)); data/freewheeling-0.6.4/src/fweelin_block.cc:1149: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(&subright->buf[subofs],&right->buf[curofs],n*sizeof(sample_t)); data/freewheeling-0.6.4/src/fweelin_block.cc:1404: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(&lclblock->buf[lclblkofs_d], data/freewheeling-0.6.4/src/fweelin_block.cc:1439: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(&lclrightblock->buf[lclblkofs_d], data/freewheeling-0.6.4/src/fweelin_block.cc:1624:9: [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(&fragment[0][fragofs], data/freewheeling-0.6.4/src/fweelin_block.cc:1642:11: [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(&fragment[1][fragofs], data/freewheeling-0.6.4/src/fweelin_browser.cc:199: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 tmp[FWEELIN_OUTNAME_LEN]; data/freewheeling-0.6.4/src/fweelin_browser.cc:271: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 tmp[FWEELIN_OUTNAME_LEN]; data/freewheeling-0.6.4/src/fweelin_browser.cc:309: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 sf_basename[FWEELIN_OUTNAME_LEN], data/freewheeling-0.6.4/src/fweelin_browser.h:157: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 rename_tmpbuf[RENAME_BUF_SIZE]; // Buffer for new name data/freewheeling-0.6.4/src/fweelin_config.cc:63: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 FWEELIN_datadir[MAXPATHLEN]; data/freewheeling-0.6.4/src/fweelin_config.cc:81: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[CFG_PATH_MAX]; data/freewheeling-0.6.4/src/fweelin_config.cc:108: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 tmp2[CFG_PATH_MAX]; data/freewheeling-0.6.4/src/fweelin_config.cc:121: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 tmp3[CFG_PATH_MAX]; data/freewheeling-0.6.4/src/fweelin_config.cc:131: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 buf2[CFG_PATH_MAX]; data/freewheeling-0.6.4/src/fweelin_config.cc:144: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 buf[CFG_PATH_MAX]; data/freewheeling-0.6.4/src/fweelin_config.cc:293:9: [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(tmp.value,evofs,sizeof(char)); data/freewheeling-0.6.4/src/fweelin_config.cc:297:9: [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(tmp.value,evofs,sizeof(int)); data/freewheeling-0.6.4/src/fweelin_config.cc:301:9: [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(tmp.value,evofs,sizeof(long)); data/freewheeling-0.6.4/src/fweelin_config.cc:305:9: [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(tmp.value,evofs,sizeof(float)); data/freewheeling-0.6.4/src/fweelin_config.cc:551: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[255]; // Copy buf data/freewheeling-0.6.4/src/fweelin_config.cc:569: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(buf,str,len); data/freewheeling-0.6.4/src/fweelin_config.cc:589: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(buf,cur,len); data/freewheeling-0.6.4/src/fweelin_config.cc:606:19: [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). *var = (char) atoi(value); data/freewheeling-0.6.4/src/fweelin_config.cc:609:18: [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). *var = (int) atoi(value); data/freewheeling-0.6.4/src/fweelin_config.cc:612:19: [2] (integer) atol: 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). *var = (long) atol(value); data/freewheeling-0.6.4/src/fweelin_config.cc:619: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 tmp[255]; data/freewheeling-0.6.4/src/fweelin_config.cc:628:16: [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 lo = atoi(tmp), data/freewheeling-0.6.4/src/fweelin_config.cc:629:28: [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). hi = (delim != 0 ? atoi(delim) : 0); data/freewheeling-0.6.4/src/fweelin_config.cc:703: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 basebuf[str_len]; data/freewheeling-0.6.4/src/fweelin_config.cc:834: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 tmp[20]; data/freewheeling-0.6.4/src/fweelin_config.cc:1042: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 tmp[20]; data/freewheeling-0.6.4/src/fweelin_config.cc:1136:22: [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). nw->echo = atoi((char *)echo); data/freewheeling-0.6.4/src/fweelin_config.cc:1153:11: [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[str_len]; data/freewheeling-0.6.4/src/fweelin_config.cc:1332: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 opstr[CfgMathOperation::numops+1]; data/freewheeling-0.6.4/src/fweelin_config.cc:1333: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[255]; // Copy buf data/freewheeling-0.6.4/src/fweelin_config.cc:1362: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(buf,str,len); data/freewheeling-0.6.4/src/fweelin_config.cc:1380: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(buf,cur,len); data/freewheeling-0.6.4/src/fweelin_config.cc:1823:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). num_triggers = atoi((char *) n); data/freewheeling-0.6.4/src/fweelin_config.cc:1829:25: [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). max_snapshots = atoi((char *) n); data/freewheeling-0.6.4/src/fweelin_config.cc:1929:20: [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). midiouts = atoi((char *) n); data/freewheeling-0.6.4/src/fweelin_config.cc:2036: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 tmp[255]; data/freewheeling-0.6.4/src/fweelin_config.cc:2087:49: [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). atoi((char *)val))); data/freewheeling-0.6.4/src/fweelin_config.cc:2104:20: [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). fsinterp = atoi((char *)n); data/freewheeling-0.6.4/src/fweelin_config.cc:2110:21: [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). fschannel = atoi((char *)n); data/freewheeling-0.6.4/src/fweelin_config.cc:2113:20: [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). fsstereo = atoi((char *)n); data/freewheeling-0.6.4/src/fweelin_config.cc:2153: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[255]; data/freewheeling-0.6.4/src/fweelin_config.cc:2187: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[255]; data/freewheeling-0.6.4/src/fweelin_config.cc:2213:18: [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). array[i++] = atoi(delim); data/freewheeling-0.6.4/src/fweelin_config.cc:2292:18: [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). nw->id = atoi((char *)n); data/freewheeling-0.6.4/src/fweelin_config.cc:2383:23: [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). pb_bypasscc = atoi((char *) n); data/freewheeling-0.6.4/src/fweelin_config.cc:2398:20: [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). pb_mport = atoi((char *) n); data/freewheeling-0.6.4/src/fweelin_config.cc:2406:18: [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). pb_tag = atoi((char *) n); data/freewheeling-0.6.4/src/fweelin_config.cc:2414:19: [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). sepchan = atoi((char *) n); data/freewheeling-0.6.4/src/fweelin_config.cc:2423:23: [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). suppresschg = atoi((char *) n); data/freewheeling-0.6.4/src/fweelin_config.cc:2514: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). mport = atoi((char *) n); data/freewheeling-0.6.4/src/fweelin_config.cc:2521:30: [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). bank = atoi((char *) n); data/freewheeling-0.6.4/src/fweelin_config.cc:2528:30: [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). prog = atoi((char *) n); data/freewheeling-0.6.4/src/fweelin_config.cc:2535:30: [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). chan = atoi((char *) n); data/freewheeling-0.6.4/src/fweelin_config.cc:2544:34: [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). bypasscc = atoi((char *) n); data/freewheeling-0.6.4/src/fweelin_config.cc:2548:39: [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). bypasschannel = atoi((char *) n); data/freewheeling-0.6.4/src/fweelin_config.cc:2579:26: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). chan = atoi((char *) n); data/freewheeling-0.6.4/src/fweelin_config.cc:2586:26: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). bank = atoi((char *) n); data/freewheeling-0.6.4/src/fweelin_config.cc:2593:26: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). prog = atoi((char *) n); data/freewheeling-0.6.4/src/fweelin_config.cc:2602:30: [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). bypasscc = atoi((char *) n); data/freewheeling-0.6.4/src/fweelin_config.cc:2606:35: [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). bypasschannel = atoi((char *) n); data/freewheeling-0.6.4/src/fweelin_config.cc:2744:23: [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). numactiveparams = atoi((char *) nn); data/freewheeling-0.6.4/src/fweelin_config.cc:2822:18: [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). nw->show = atoi((char *)n); data/freewheeling-0.6.4/src/fweelin_config.cc:2884:11: [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). iid = atoi((char *) n); data/freewheeling-0.6.4/src/fweelin_config.cc:2918:17: [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). xpand = atoi((char *) nn); data/freewheeling-0.6.4/src/fweelin_config.cc:3080:50: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ((FloDisplayCircleSwitch *) nw)->flash = atoi((char *)nn); data/freewheeling-0.6.4/src/fweelin_config.cc:3184:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). nwb->dbscale = atoi((char *)nn); data/freewheeling-0.6.4/src/fweelin_config.cc:3192:22: [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). nwb->marks = atoi((char *)nn); data/freewheeling-0.6.4/src/fweelin_config.cc:3204:50: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ((FloDisplayBarSwitch *) nwb)->color = atoi((char *) nn); data/freewheeling-0.6.4/src/fweelin_config.cc:3275:18: [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). vdelay = atoi((char *)n); data/freewheeling-0.6.4/src/fweelin_config.cc:3303:20: [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). nw->size = atoi((char *)n); data/freewheeling-0.6.4/src/fweelin_config.cc:3331:18: [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). nw->id = atoi((char *)n); data/freewheeling-0.6.4/src/fweelin_config.cc:3338:20: [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). nw->show = atoi((char *)n); data/freewheeling-0.6.4/src/fweelin_config.cc:3346:25: [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). nw->showlabel = atoi((char *)n); data/freewheeling-0.6.4/src/fweelin_config.cc:3354:26: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). nw->showelabel = atoi((char *)n); data/freewheeling-0.6.4/src/fweelin_config.cc:3632:22: [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). switchable = atoi((char *) n); data/freewheeling-0.6.4/src/fweelin_core.cc:152: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(basename,filename,sizeof(char)*len); data/freewheeling-0.6.4/src/fweelin_core.cc:161:9: [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(hash,slashptr+1,sizeof(char)*len); data/freewheeling-0.6.4/src/fweelin_core.cc:177:9: [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(objname,slashptr2+1,sizeof(char)*len); data/freewheeling-0.6.4/src/fweelin_core.cc:194: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 fn_base[FWEELIN_OUTNAME_LEN], data/freewheeling-0.6.4/src/fweelin_core.cc:202: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 tmp[FWEELIN_OUTNAME_LEN]; data/freewheeling-0.6.4/src/fweelin_core.cc:217: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 tmp_a[FWEELIN_OUTNAME_LEN], data/freewheeling-0.6.4/src/fweelin_core.cc:323: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[FWEELIN_OUTNAME_LEN]; data/freewheeling-0.6.4/src/fweelin_core.cc:344: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 tmp[FWEELIN_OUTNAME_LEN]; data/freewheeling-0.6.4/src/fweelin_core.cc:367: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[FWEELIN_OUTNAME_LEN]; data/freewheeling-0.6.4/src/fweelin_core.cc:392: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 tmp[FWEELIN_OUTNAME_LEN]; data/freewheeling-0.6.4/src/fweelin_core.cc:470: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 *exts[numexts]; data/freewheeling-0.6.4/src/fweelin_core.cc:483: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 fn_hash[FWEELIN_OUTNAME_LEN]; data/freewheeling-0.6.4/src/fweelin_core.cc:974: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[FWEELIN_OUTNAME_LEN]; data/freewheeling-0.6.4/src/fweelin_core.cc:989: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 tmp2[FWEELIN_OUTNAME_LEN]; data/freewheeling-0.6.4/src/fweelin_core.cc:1001: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[FWEELIN_OUTNAME_LEN * 2 + 20]; data/freewheeling-0.6.4/src/fweelin_core.cc:1023: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 xmltmp[XT_LEN]; data/freewheeling-0.6.4/src/fweelin_core.cc:1209: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 tmp[FWEELIN_OUTNAME_LEN]; data/freewheeling-0.6.4/src/fweelin_core.cc:1236:14: [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). *out = fopen(tmp,"wb"); data/freewheeling-0.6.4/src/fweelin_core.cc:1268:11: [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 xmltmp[XT_LEN]; data/freewheeling-0.6.4/src/fweelin_core.cc:1315:11: [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). *in = fopen(f.name.c_str(),"rb"); data/freewheeling-0.6.4/src/fweelin_core.cc:1342: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 fn_hash[FWEELIN_OUTNAME_LEN], data/freewheeling-0.6.4/src/fweelin_core.cc:1379:13: [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). if (atoi((char *) n) >= 1) data/freewheeling-0.6.4/src/fweelin_core.cc:1395: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). (*new_loop)->nbeats = atoi((char *) n); data/freewheeling-0.6.4/src/fweelin_core.cc:1401:20: [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 plen = atoi((char *) n); data/freewheeling-0.6.4/src/fweelin_core.cc:1956:9: [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(newls,s->ls,sizeof(LoopSnapshot) * s->numls); data/freewheeling-0.6.4/src/fweelin_core.cc:1995:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newls,s->ls,sizeof(LoopSnapshot) * j); data/freewheeling-0.6.4/src/fweelin_core.cc:1997:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&newls[j],&(s->ls[j+1]), data/freewheeling-0.6.4/src/fweelin_core.cc:2230: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[FWEELIN_OUTNAME_LEN], data/freewheeling-0.6.4/src/fweelin_core.cc:2255:21: [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). l_idx = atoi((char *) n); data/freewheeling-0.6.4/src/fweelin_core.cc:2290:22: [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). snapid = atoi((char *) n); data/freewheeling-0.6.4/src/fweelin_core.cc:2353:33: [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). ls->l_idx = atoi((char *) nn); data/freewheeling-0.6.4/src/fweelin_core.cc:2360:47: [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). ls->status = (LoopStatus) atoi((char *) nn); data/freewheeling-0.6.4/src/fweelin_core.cc:3476: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[255]; data/freewheeling-0.6.4/src/fweelin_core.cc:3554: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(tmp,"SYSTEM_loopid_lastrecord_%d",i); data/freewheeling-0.6.4/src/fweelin_core.cc:3575:14: [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 (audio->open()) { data/freewheeling-0.6.4/src/fweelin_core.cc:3795: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(tmp,"SYSTEM_loopid_lastrecord_%d",i); data/freewheeling-0.6.4/src/fweelin_core.h:90: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 hashtext[SAVEABLE_HASH_LENGTH*2+1]; \ data/freewheeling-0.6.4/src/fweelin_core.h:94: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(ptr,"%02X",s[i]); \ data/freewheeling-0.6.4/src/fweelin_core.h:123: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 htmp[3]; data/freewheeling-0.6.4/src/fweelin_core.h:206:12: [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 savehash[SAVEABLE_HASH_LENGTH+1]; data/freewheeling-0.6.4/src/fweelin_core.h:1050: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 tmp[sizeof(Snapshot)]; data/freewheeling-0.6.4/src/fweelin_core.h:1052: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(tmp,s1,sizeof(Snapshot)); data/freewheeling-0.6.4/src/fweelin_core.h:1053: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((unsigned char*)s1,s2,sizeof(Snapshot)); data/freewheeling-0.6.4/src/fweelin_core.h:1054: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((unsigned char*)s2,tmp,sizeof(Snapshot)); data/freewheeling-0.6.4/src/fweelin_core_dsp.cc:677: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(ab->outs[1][0],ab->outs[0][0],sizeof(sample_t) * l); data/freewheeling-0.6.4/src/fweelin_core_dsp.cc:1175: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(abtmp->ins[0],ab->ins[0],sizeof(sample_t *) * ab->numins); data/freewheeling-0.6.4/src/fweelin_core_dsp.cc:1176: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(abtmp->ins[1],ab->ins[1],sizeof(sample_t *) * ab->numins); data/freewheeling-0.6.4/src/fweelin_core_dsp.cc:1227: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(buf[0],out[0],sizeof(sample_t)*len); data/freewheeling-0.6.4/src/fweelin_core_dsp.cc:1229: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(buf[1],out[1],sizeof(sample_t)*len); data/freewheeling-0.6.4/src/fweelin_core_dsp.cc:1237: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(abtmp->ins[0],ab->ins[0],sizeof(sample_t *) * ab->numins); data/freewheeling-0.6.4/src/fweelin_core_dsp.cc:1238: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(abtmp->ins[1],ab->ins[1],sizeof(sample_t *) * ab->numins); data/freewheeling-0.6.4/src/fweelin_core_dsp.cc:1263:9: [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(ab->outs[chan][i],ab->outs[chan][0],sizeof(sample_t) * len); data/freewheeling-0.6.4/src/fweelin_core_dsp.cc:1765: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(&(dest_l[l]),&(loop_l[l]),sizeof(sample_t) * (len-l)); data/freewheeling-0.6.4/src/fweelin_core_dsp.cc:1786: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(&(dest_r[l]),&(loop_r[l]),sizeof(sample_t) * (len-l)); data/freewheeling-0.6.4/src/fweelin_core_dsp.cc:2014:11: [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(out[1],out[0],sizeof(sample_t) * len); data/freewheeling-0.6.4/src/fweelin_core_dsp.cc:2037:9: [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(od_last_lpbuf[0],lpbuf[0],sizeof(sample_t) * len); data/freewheeling-0.6.4/src/fweelin_core_dsp.cc:2038:9: [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(od_last_mbuf[0],mbuf[0],sizeof(sample_t) * len); data/freewheeling-0.6.4/src/fweelin_core_dsp.cc:2040:11: [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(od_last_lpbuf[1],lpbuf[1],sizeof(sample_t) * len); data/freewheeling-0.6.4/src/fweelin_core_dsp.cc:2041:11: [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(od_last_mbuf[1],mbuf[1],sizeof(sample_t) * len); data/freewheeling-0.6.4/src/fweelin_core_dsp.cc:2301:9: [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(out[1],out[0],sizeof(sample_t) * len); data/freewheeling-0.6.4/src/fweelin_core_dsp.cc:2434:9: [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(&outbuf[0][outpos],in[0],sizeof(sample_t) * len); data/freewheeling-0.6.4/src/fweelin_core_dsp.cc:2435:9: [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(&outbuf[1][outpos],in[1],sizeof(sample_t) * len); data/freewheeling-0.6.4/src/fweelin_core_dsp.cc:2459:9: [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(&outbuf[0][outpos],in[0],sizeof(sample_t) * len); data/freewheeling-0.6.4/src/fweelin_core_dsp.cc:2557:21: [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). inst->outfd = fopen(inst->outname.c_str(),"wb"); data/freewheeling-0.6.4/src/fweelin_core_dsp.cc:2559:26: [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). inst->timingfd = fopen(inst->timingname.c_str(),"wb"); data/freewheeling-0.6.4/src/fweelin_core_dsp.h:192: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(selins,src.selins,sizeof(char)*numins); data/freewheeling-0.6.4/src/fweelin_core_dsp.h:193: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(invols,src.invols,sizeof(float)*numins); data/freewheeling-0.6.4/src/fweelin_core_dsp.h:194: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(dinvols,src.dinvols,sizeof(float)*numins); data/freewheeling-0.6.4/src/fweelin_core_dsp.h:195: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(insums[0],src.insums[0],sizeof(sample_t)*numins); data/freewheeling-0.6.4/src/fweelin_core_dsp.h:196: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(insums[1],src.insums[1],sizeof(sample_t)*numins); data/freewheeling-0.6.4/src/fweelin_core_dsp.h:197: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(insavg[0],src.insavg[0],sizeof(sample_t)*numins); data/freewheeling-0.6.4/src/fweelin_core_dsp.h:198: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(insavg[1],src.insavg[1],sizeof(sample_t)*numins); data/freewheeling-0.6.4/src/fweelin_core_dsp.h:199: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(inpeak,src.inpeak,sizeof(sample_t)*numins); data/freewheeling-0.6.4/src/fweelin_core_dsp.h:200: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(inpeaktime,src.inpeaktime,sizeof(sample_t)*numins); data/freewheeling-0.6.4/src/fweelin_core_dsp.h:201: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(inscnt,src.inscnt,sizeof(int)*numins); data/freewheeling-0.6.4/src/fweelin_datatypes.h:462: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(data,src.data,CFG_VAR_SIZE); data/freewheeling-0.6.4/src/fweelin_datatypes.h:506: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[CFG_VAR_SIZE]; data/freewheeling-0.6.4/src/fweelin_event.h:2709: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 l_filename[FWEELIN_OUTNAME_LEN]; data/freewheeling-0.6.4/src/fweelin_event.h:2722: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 s_filename[FWEELIN_OUTNAME_LEN]; // Filename of scene on disk data/freewheeling-0.6.4/src/fweelin_logo.h:24:12: [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 pixel_data[223 * 42 * 4 + 1]; data/freewheeling-0.6.4/src/fweelin_midiio.cc:84: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 portname[64]; data/freewheeling-0.6.4/src/fweelin_midiio.cc:111: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 cendname[1024]; data/freewheeling-0.6.4/src/fweelin_midiio.cc:144: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[64]; data/freewheeling-0.6.4/src/fweelin_midiio.cc:157: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 sourcename[64]; data/freewheeling-0.6.4/src/fweelin_midiio.cc:260:12: [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 msg[3]; data/freewheeling-0.6.4/src/fweelin_midiio.cc:274:12: [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 msg[2]; data/freewheeling-0.6.4/src/fweelin_midiio.cc:287:12: [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 msg[2]; data/freewheeling-0.6.4/src/fweelin_midiio.cc:300:12: [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 msg[3]; data/freewheeling-0.6.4/src/fweelin_midiio.cc:310:12: [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 msg[3]; data/freewheeling-0.6.4/src/fweelin_midiio.cc:359: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 portname[64]; data/freewheeling-0.6.4/src/fweelin_osc.cc:130:13: [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[PATH_MAX + 1]; data/freewheeling-0.6.4/src/fweelin_osc.cc:180: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 portbuf[256]; data/freewheeling-0.6.4/src/fweelin_paramset.h:113: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 tmp[slen+1]; data/freewheeling-0.6.4/src/fweelin_videoio.cc:1122: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 tmp[50]; data/freewheeling-0.6.4/src/fweelin_videoio.cc:1131: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 tmp[50]; data/freewheeling-0.6.4/src/fweelin_videoio.cc:1195: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). lcd_handle = open(devname, O_RDWR | O_NOCTTY /*| O_NONBLOCK*/); data/freewheeling-0.6.4/src/fweelin_videoio.cc:1328: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[255]; data/freewheeling-0.6.4/src/fweelin_videoio.cc:1432: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(logopic->pixels,fweelin_logo.pixel_data, data/freewheeling-0.6.4/src/fweelin_videoio.cc:1711:9: [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",i+1); data/freewheeling-0.6.4/src/fweelin_videoio.cc:1816: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(tmp,"stream off"); // No output data/freewheeling-0.6.4/src/fweelin_videoio.cc:2130: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 fweelin_font_path[255]; data/freewheeling-0.6.4/src/fweelin_videoio.cc:2131: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 system_font_path[255]; data/freewheeling-0.6.4/src/fweelin_videoio.h:239: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[LCD_COLS+1]; data/freewheeling-0.6.4/src/fweelin_videoio.h:252: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 lcd_dat[2][LCD_ROWS][LCD_COLS]; // Double buffer for LCD screen data/freewheeling-0.6.4/src/fweelin_videoio_displays.cc:250: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 tmp[255]; data/freewheeling-0.6.4/src/fweelin_videoio_displays.cc:449: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 tmp[255]; data/freewheeling-0.6.4/src/fweelin_videoio_displays.cc:867: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[SNAP_NAME_LEN]; data/freewheeling-0.6.4/src/stacktrace.c:213: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[MAX_BUFFER_SIZE + 1]; data/freewheeling-0.6.4/src/stacktrace.c:223: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[MAX_BUFFER_SIZE]; data/freewheeling-0.6.4/src/stacktrace.c:231: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[MAX_BUFFER_SIZE]; data/freewheeling-0.6.4/src/stacktrace.c:325:3: [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(buffer, "nm -V 2>/dev/null | grep GNU | wc -l"); data/freewheeling-0.6.4/src/stacktrace.c:338: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(buffer, "nm -x -p "); data/freewheeling-0.6.4/src/stacktrace.c:340: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(buffer, "nm -x -B "); data/freewheeling-0.6.4/src/stacktrace.c:342: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(buffer, "nm -B "); data/freewheeling-0.6.4/src/stacktrace.c:346: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(buffer, "nm -B "); data/freewheeling-0.6.4/src/stacktrace.c:390:8: [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(buffer, "[%d] 0x%08lx ???\n", i, syms[i].realAddress); data/freewheeling-0.6.4/src/stacktrace.c:418: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 cmd[MAX_BUFFER_SIZE]; data/freewheeling-0.6.4/src/stacktrace.c:454: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[MAX_BUFFER_SIZE]; data/freewheeling-0.6.4/src/fweelin_amixer.cc:489: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). decode_tlv(strlen(space), tlv, 4096); data/freewheeling-0.6.4/src/fweelin_amixer.cc:512: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). len = strlen(name); data/freewheeling-0.6.4/src/fweelin_audioio.cc:250:5: [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); data/freewheeling-0.6.4/src/fweelin_block.cc:1425:17: [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); // Wait then try again data/freewheeling-0.6.4/src/fweelin_block.cc:2329:5: [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); data/freewheeling-0.6.4/src/fweelin_browser.cc:41:5: [1] (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 character. strcpy(rename_tmpbuf,""); data/freewheeling-0.6.4/src/fweelin_browser.cc:42:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if (strlen(oldname)+1 >= (unsigned int) RENAME_BUF_SIZE) { data/freewheeling-0.6.4/src/fweelin_browser.cc:43:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(rename_tmpbuf,oldname,RENAME_BUF_SIZE-1); data/freewheeling-0.6.4/src/fweelin_browser.cc:198: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(cur->name) == 0) { data/freewheeling-0.6.4/src/fweelin_browser.cc:258: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). filename = new char[strlen(new_filename)+1]; data/freewheeling-0.6.4/src/fweelin_browser.cc:270: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). if (cur->name == 0 || strlen(cur->name) == 0) { data/freewheeling-0.6.4/src/fweelin_browser.cc:298: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 baselen = strlen(app->getCFG()->GetLibraryPath()) + 1; data/freewheeling-0.6.4/src/fweelin_browser.cc:300: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). baselen += strlen(FWEELIN_OUTPUT_LOOP_NAME); data/freewheeling-0.6.4/src/fweelin_browser.cc:302: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). baselen += strlen(FWEELIN_OUTPUT_SCENE_NAME); data/freewheeling-0.6.4/src/fweelin_browser.cc:315: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(sf_objname) == 0) { data/freewheeling-0.6.4/src/fweelin_browser.cc:325:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). outbuf[strlen(outbuf)-1] = '\0'; // Cut off return character data/freewheeling-0.6.4/src/fweelin_browser.cc:330:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(outbuf,sf_objname,maxlen); data/freewheeling-0.6.4/src/fweelin_browser.cc:1103: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). s->name = new char[strlen(nw)+1]; data/freewheeling-0.6.4/src/fweelin_browser.h:60:23: [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). name = new char[strlen(n)+1]; data/freewheeling-0.6.4/src/fweelin_browser.h:140: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 rblen = strlen(rename_tmpbuf); data/freewheeling-0.6.4/src/fweelin_browser.h:149: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 rblen = strlen(rename_tmpbuf); data/freewheeling-0.6.4/src/fweelin_browser.h:286: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). i->name = new char[strlen(nw)+1]; data/freewheeling-0.6.4/src/fweelin_config.cc:513: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 n = strlen(str)-1; data/freewheeling-0.6.4/src/fweelin_config.cc:564:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf,str,255); data/freewheeling-0.6.4/src/fweelin_config.cc:586: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). len = strlen(cur); data/freewheeling-0.6.4/src/fweelin_config.cc:620:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tmp,value,255); data/freewheeling-0.6.4/src/fweelin_config.cc:702: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 str_len = strlen(str_base)+4; data/freewheeling-0.6.4/src/fweelin_config.cc:724:31: [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 = (nextp == 0 ? strlen(curp) : (int) (nextp-curp)); data/freewheeling-0.6.4/src/fweelin_config.cc:725:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf,curp,len); data/freewheeling-0.6.4/src/fweelin_config.cc:814:38: [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). curp = (nextp == 0 ? 0 : nextp+strlen(delim)); data/freewheeling-0.6.4/src/fweelin_config.cc:900:31: [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 = (nextc == 0 ? strlen(curc) : (int) (nextc-curc)); data/freewheeling-0.6.4/src/fweelin_config.cc:901:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf,curc,len); data/freewheeling-0.6.4/src/fweelin_config.cc:1022:38: [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). curc = (nextc == 0 ? 0 : nextc+strlen(delim)); data/freewheeling-0.6.4/src/fweelin_config.cc:1152: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). int str_len = strlen(str_base)+4; data/freewheeling-0.6.4/src/fweelin_config.cc:1290: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). if (strlen(str) > 0 && strpbrk(str,ascii_scalar) != str) { data/freewheeling-0.6.4/src/fweelin_config.cc:1357:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf,str,255); data/freewheeling-0.6.4/src/fweelin_config.cc:1377: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). len = strlen(cur); data/freewheeling-0.6.4/src/fweelin_config.cc:1838: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). librarypath = new char[strlen(homedir)+xmlStrlen(n)+1]; data/freewheeling-0.6.4/src/fweelin_config.cc:1847: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). if (ptr != 0 && strlen(ptr) == 1) // Trailing backslash? data/freewheeling-0.6.4/src/fweelin_config.cc:2154:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf,n,254); data/freewheeling-0.6.4/src/fweelin_config.cc:2188:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf,n,254); data/freewheeling-0.6.4/src/fweelin_config.cc:3435: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). strlen(FWEELIN_CONFIG_HELP_TOKEN))) { data/freewheeling-0.6.4/src/fweelin_config.cc:3437: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). str += strlen(FWEELIN_CONFIG_HELP_TOKEN); data/freewheeling-0.6.4/src/fweelin_config.cc:3438: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). char *s = new char[strlen(str)+1]; data/freewheeling-0.6.4/src/fweelin_config.cc:3471: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). nw->name = new char[strlen(name)+1]; data/freewheeling-0.6.4/src/fweelin_config.h:671: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). this->name = new char[strlen(name)+1]; data/freewheeling-0.6.4/src/fweelin_config.h:710: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). this->val = new char[strlen(val)+1]; data/freewheeling-0.6.4/src/fweelin_config.h:725:29: [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->name = new char[strlen(name)+1]; data/freewheeling-0.6.4/src/fweelin_config.h:729:29: [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->name = new char[strlen(FWEELIN_DATADIR)+1+strlen(name)+1]; data/freewheeling-0.6.4/src/fweelin_config.h:729:55: [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->name = new char[strlen(FWEELIN_DATADIR)+1+strlen(name)+1]; data/freewheeling-0.6.4/src/fweelin_core.cc:74: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). this->name = new char[strlen(name)+1]; data/freewheeling-0.6.4/src/fweelin_core.cc:141: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). if (slashptr < filename+strlen(filename)) { data/freewheeling-0.6.4/src/fweelin_core.cc:146: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). extptr = filename+strlen(filename); // No extension data/freewheeling-0.6.4/src/fweelin_core.cc:158: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(slashptr+1) - strlen(breaker) == SAVEABLE_HASH_LENGTH*2) { data/freewheeling-0.6.4/src/fweelin_core.cc:158:30: [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(slashptr+1) - strlen(breaker) == SAVEABLE_HASH_LENGTH*2) { data/freewheeling-0.6.4/src/fweelin_core.cc:175: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). len = strlen(slashptr2+1) - strlen(extptr); data/freewheeling-0.6.4/src/fweelin_core.cc:175: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). len = strlen(slashptr2+1) - strlen(extptr); data/freewheeling-0.6.4/src/fweelin_core.cc:180:9: [1] (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 character. strcpy(objname,""); data/freewheeling-0.6.4/src/fweelin_core.cc:203:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tmp,*filename_ptr,FWEELIN_OUTNAME_LEN); data/freewheeling-0.6.4/src/fweelin_core.cc:207:30: [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). *filename_ptr = new char[strlen(fn_base)+1+ data/freewheeling-0.6.4/src/fweelin_core.cc:208:30: [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(fn_hash)+1+ data/freewheeling-0.6.4/src/fweelin_core.cc:209:30: [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(newname)+1]; data/freewheeling-0.6.4/src/fweelin_core.cc:210: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(newname) > 0) data/freewheeling-0.6.4/src/fweelin_core.cc:250:31: [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 (old_objname == 0 || strlen(old_objname) == 0) data/freewheeling-0.6.4/src/fweelin_core.cc:257:30: [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 (nw_objname == 0 || strlen(nw_objname) == 0) data/freewheeling-0.6.4/src/fweelin_core.cc:465:21: [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 baselen = strlen(app->getCFG()->GetLibraryPath()) + 1 + data/freewheeling-0.6.4/src/fweelin_core.cc:466: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(FWEELIN_OUTPUT_LOOP_NAME); data/freewheeling-0.6.4/src/fweelin_core.cc:511:21: [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 baselen = strlen(app->getCFG()->GetLibraryPath()) + 1 + data/freewheeling-0.6.4/src/fweelin_core.cc:512: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(FWEELIN_OUTPUT_SCENE_NAME); data/freewheeling-0.6.4/src/fweelin_core.cc:922:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(sEvt->s_filename,filename,FWEELIN_OUTNAME_LEN); data/freewheeling-0.6.4/src/fweelin_core.cc:1211: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). if (l->name == 0 || strlen(l->name) == 0) data/freewheeling-0.6.4/src/fweelin_core.cc:1256:29: [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 (l->name == 0 || strlen(l->name) == 0) data/freewheeling-0.6.4/src/fweelin_core.cc:1344:21: [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 baselen = strlen(app->getCFG()->GetLibraryPath()) + 1 + data/freewheeling-0.6.4/src/fweelin_core.cc:1345: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(FWEELIN_OUTPUT_LOOP_NAME); data/freewheeling-0.6.4/src/fweelin_core.cc:1371:38: [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). (*new_loop)->name = new char[strlen(loopname)+1]; data/freewheeling-0.6.4/src/fweelin_core.cc:3217:5: [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); data/freewheeling-0.6.4/src/fweelin_core.cc:3570:5: [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); data/freewheeling-0.6.4/src/fweelin_core.cc:3647:3: [1] (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 character. strcpy(scenedispname,""); data/freewheeling-0.6.4/src/fweelin_core.cc:3648:3: [1] (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 character. strcpy(scenefilename,""); data/freewheeling-0.6.4/src/fweelin_core.h:117: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 slen = strlen(stext); data/freewheeling-0.6.4/src/fweelin_core.h:178:22: [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 (c < filename+strlen(filename)) { data/freewheeling-0.6.4/src/fweelin_core.h:566: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). filename = new char[strlen(fn)+1]; data/freewheeling-0.6.4/src/fweelin_core.h:600: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). filename = new char[strlen(fn)+1]; data/freewheeling-0.6.4/src/fweelin_core.h:855: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). l->name = new char[strlen(nw)+1]; data/freewheeling-0.6.4/src/fweelin_core_dsp.cc:2637:5: [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); data/freewheeling-0.6.4/src/fweelin_event.cc:380:11: [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); data/freewheeling-0.6.4/src/fweelin_event.cc:400:11: [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); data/freewheeling-0.6.4/src/fweelin_event.h:2700:5: [1] (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 character. strcpy(l_filename,""); data/freewheeling-0.6.4/src/fweelin_event.h:2718:5: [1] (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 character. strcpy(s_filename,""); data/freewheeling-0.6.4/src/fweelin_mem.cc:302: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(10000); data/freewheeling-0.6.4/src/fweelin_paramset.h:37:29: [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->name = new char[strlen(name)+1]; data/freewheeling-0.6.4/src/fweelin_paramset.h:68:29: [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->name = new char[strlen(name)+1]; data/freewheeling-0.6.4/src/fweelin_paramset.h:86: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). this->name = new char[strlen(name)+1]; data/freewheeling-0.6.4/src/fweelin_paramset.h:112: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 slen = strlen(name) + 255; data/freewheeling-0.6.4/src/fweelin_rcu.h:144:9: [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(sleep_time); data/freewheeling-0.6.4/src/fweelin_videoio.cc:1512:5: [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(app->getCFG()->GetVDelay()); data/freewheeling-0.6.4/src/fweelin_videoio.cc:1567:21: [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). lc += strlen(curel->name) + 1; data/freewheeling-0.6.4/src/fweelin_videoio.cc:2197:5: [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); data/freewheeling-0.6.4/src/fweelin_videoio.h:214:9: [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(1000); data/freewheeling-0.6.4/src/fweelin_videoio.h:242:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf,lcd_dat[lcd_curb][r],LCD_COLS); data/freewheeling-0.6.4/src/fweelin_videoio_displays.cc:282:11: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(tmp,renamer->GetCurName(),254); data/freewheeling-0.6.4/src/fweelin_videoio_displays.cc:296:11: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(tmp,i->name,254); data/freewheeling-0.6.4/src/stacktrace.c:181:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, &c, 1) < 1) data/freewheeling-0.6.4/src/stacktrace.c:374:6: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(syms[i].name, name, MAX_BUFFER_SIZE); data/freewheeling-0.6.4/src/stacktrace.c:401: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). write(global_output, buffer, strlen(buffer)); data/freewheeling-0.6.4/src/stacktrace.c:463: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("Output from ")); data/freewheeling-0.6.4/src/stacktrace.c:465:31: [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). write(global_output, cmd, strlen(cmd)); data/freewheeling-0.6.4/src/stacktrace.c:466:32: [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). write(global_output, "\n", strlen("\n")); data/freewheeling-0.6.4/src/stacktrace.c:469:24: [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 ('\n' == buf[strlen(buf)-1]) data/freewheeling-0.6.4/src/stacktrace.c:471: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). buf[strlen(buf)-1] = (char)0; data/freewheeling-0.6.4/src/stacktrace.c:473: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). write(global_output, buffer, strlen(buffer)); data/freewheeling-0.6.4/src/stacktrace.c:474: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). write(global_output, "\n", strlen("\n")); data/freewheeling-0.6.4/src/stacktrace.c:753: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). "No debugger found\n", strlen("No debugger found\n")); data/freewheeling-0.6.4/src/stacktrace.c:791:3: [1] (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 character. strcpy(NULL, ""); ANALYSIS SUMMARY: Hits = 417 Lines analyzed = 36578 in approximately 0.95 seconds (38524 lines/second) Physical Source Lines of Code (SLOC) = 25897 Hits@level = [0] 883 [1] 114 [2] 218 [3] 5 [4] 80 [5] 0 Hits@level+ = [0+] 1300 [1+] 417 [2+] 303 [3+] 85 [4+] 80 [5+] 0 Hits/KSLOC@level+ = [0+] 50.1989 [1+] 16.1023 [2+] 11.7002 [3+] 3.28223 [4+] 3.08916 [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.