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/fasttracker2-1.24/src/ft2_pattern_draw.h Examining data/fasttracker2-1.24/src/ft2_header.h Examining data/fasttracker2-1.24/src/ft2_scopes.h Examining data/fasttracker2-1.24/src/ft2_gfxdata.h Examining data/fasttracker2-1.24/src/helpdata/code/ft2hlp_to_h.c Examining data/fasttracker2-1.24/src/helpdata/ft2_help_data.h Examining data/fasttracker2-1.24/src/ft2_textboxes.h Examining data/fasttracker2-1.24/src/ft2_module_loader.h Examining data/fasttracker2-1.24/src/ft2_about.h Examining data/fasttracker2-1.24/src/ft2_wav_renderer.c Examining data/fasttracker2-1.24/src/ft2_events.c Examining data/fasttracker2-1.24/src/ft2_bmp.c Examining data/fasttracker2-1.24/src/ft2_pattern_draw.c Examining data/fasttracker2-1.24/src/ft2_trim.c Examining data/fasttracker2-1.24/src/ft2_trim.h Examining data/fasttracker2-1.24/src/ft2_sample_saver.h Examining data/fasttracker2-1.24/src/rtmidi/rtmidi_c.h Examining data/fasttracker2-1.24/src/rtmidi/RtMidi.h Examining data/fasttracker2-1.24/src/rtmidi/rtmidi_c.cpp Examining data/fasttracker2-1.24/src/rtmidi/RtMidi.cpp Examining data/fasttracker2-1.24/src/ft2_scopedraw.h Examining data/fasttracker2-1.24/src/ft2_gui.h Examining data/fasttracker2-1.24/src/ft2_nibbles.c Examining data/fasttracker2-1.24/src/ft2_replayer.h Examining data/fasttracker2-1.24/src/ft2_diskop.h Examining data/fasttracker2-1.24/src/ft2_diskop.c Examining data/fasttracker2-1.24/src/ft2_audio.h Examining data/fasttracker2-1.24/src/ft2_inst_ed.h Examining data/fasttracker2-1.24/src/ft2_sample_loader.h Examining data/fasttracker2-1.24/src/ft2_midi.h Examining data/fasttracker2-1.24/src/ft2_scrollbars.c Examining data/fasttracker2-1.24/src/ft2_keyboard.c Examining data/fasttracker2-1.24/src/ft2_pattern_ed.h Examining data/fasttracker2-1.24/src/ft2_nibbles.h Examining data/fasttracker2-1.24/src/gfxdata/ft2_bmp_scopes.c Examining data/fasttracker2-1.24/src/gfxdata/ft2_bmp_fonts.c Examining data/fasttracker2-1.24/src/gfxdata/ft2_bmp_nibbles.c Examining data/fasttracker2-1.24/src/gfxdata/ft2_bmp_instr.c Examining data/fasttracker2-1.24/src/gfxdata/ft2_bmp_gui.c Examining data/fasttracker2-1.24/src/gfxdata/ft2_bmp_logo.c Examining data/fasttracker2-1.24/src/gfxdata/ft2_bmp_mouse.c Examining data/fasttracker2-1.24/src/gfxdata/bmp/win32 tools/bin2h.c Examining data/fasttracker2-1.24/src/gfxdata/ft2_bmp_midi.c Examining data/fasttracker2-1.24/src/gfxdata/ft2_bmp_looppins.c Examining data/fasttracker2-1.24/src/ft2_sample_saver.c Examining data/fasttracker2-1.24/src/ft2_audioselector.c Examining data/fasttracker2-1.24/src/ft2_sampling.c Examining data/fasttracker2-1.24/src/ft2_audioselector.h Examining data/fasttracker2-1.24/src/ft2_structs.c Examining data/fasttracker2-1.24/src/ft2_palette.c Examining data/fasttracker2-1.24/src/ft2_help.c Examining data/fasttracker2-1.24/src/ft2_sample_ed.h Examining data/fasttracker2-1.24/src/ft2_keyboard.h Examining data/fasttracker2-1.24/src/ft2_pattern_ed.c Examining data/fasttracker2-1.24/src/ft2_pushbuttons.c Examining data/fasttracker2-1.24/src/ft2_about.c Examining data/fasttracker2-1.24/src/ft2_intrp_table.h Examining data/fasttracker2-1.24/src/ft2_video.c Examining data/fasttracker2-1.24/src/ft2_main.c Examining data/fasttracker2-1.24/src/ft2_structs.h Examining data/fasttracker2-1.24/src/ft2_textboxes.c Examining data/fasttracker2-1.24/src/ft2_mouse.c Examining data/fasttracker2-1.24/src/ft2_help.h Examining data/fasttracker2-1.24/src/ft2_config.h Examining data/fasttracker2-1.24/src/ft2_mix_macros.h Examining data/fasttracker2-1.24/src/ft2_module_saver.c Examining data/fasttracker2-1.24/src/ft2_scrollbars.h Examining data/fasttracker2-1.24/src/ft2_events.h Examining data/fasttracker2-1.24/src/ft2_sample_ed.c Examining data/fasttracker2-1.24/src/ft2_sysreqs.h Examining data/fasttracker2-1.24/src/ft2_mix.c Examining data/fasttracker2-1.24/src/ft2_sample_loader.c Examining data/fasttracker2-1.24/src/ft2_sampling.h Examining data/fasttracker2-1.24/src/ft2_wav_renderer.h Examining data/fasttracker2-1.24/src/ft2_module_saver.h Examining data/fasttracker2-1.24/src/ft2_mix.h Examining data/fasttracker2-1.24/src/ft2_radiobuttons.h Examining data/fasttracker2-1.24/src/ft2_pushbuttons.h Examining data/fasttracker2-1.24/src/ft2_gui.c Examining data/fasttracker2-1.24/src/ft2_sample_ed_features.c Examining data/fasttracker2-1.24/src/ft2_sysreqs.c Examining data/fasttracker2-1.24/src/ft2_edit.h Examining data/fasttracker2-1.24/src/ft2_checkboxes.h Examining data/fasttracker2-1.24/src/ft2_tables.c Examining data/fasttracker2-1.24/src/ft2_bmp.h Examining data/fasttracker2-1.24/src/ft2_mouse.h Examining data/fasttracker2-1.24/src/ft2_palette.h Examining data/fasttracker2-1.24/src/ft2_audio.c Examining data/fasttracker2-1.24/src/ft2_module_loader.c Examining data/fasttracker2-1.24/src/ft2_intrp_table.c Examining data/fasttracker2-1.24/src/ft2_tables.h Examining data/fasttracker2-1.24/src/ft2_scopes.c Examining data/fasttracker2-1.24/src/ft2_unicode.c Examining data/fasttracker2-1.24/src/ft2_config.c Examining data/fasttracker2-1.24/src/ft2_radiobuttons.c Examining data/fasttracker2-1.24/src/ft2_unicode.h Examining data/fasttracker2-1.24/src/ft2_scopedraw.c Examining data/fasttracker2-1.24/src/ft2_sample_ed_features.h Examining data/fasttracker2-1.24/src/ft2_replayer.c Examining data/fasttracker2-1.24/src/ft2_edit.c Examining data/fasttracker2-1.24/src/ft2_midi.c Examining data/fasttracker2-1.24/src/ft2_inst_ed.c Examining data/fasttracker2-1.24/src/ft2_video.h Examining data/fasttracker2-1.24/src/ft2_checkboxes.c FINAL RESULTS: data/fasttracker2-1.24/src/ft2_about.c:261:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(verText, "v%s (compiled on %s)", PROG_VER_STR, __DATE__); data/fasttracker2-1.24/src/ft2_audio.c:95: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(audio.currOutputDevice, audio.lastWorkingAudioDeviceName); data/fasttracker2-1.24/src/ft2_audio.c:1100: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(audio.lastWorkingAudioDeviceName, audio.currOutputDevice); data/fasttracker2-1.24/src/ft2_audioselector.c:254: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(audio.currOutputDevice, devString); data/fasttracker2-1.24/src/ft2_audioselector.c:286: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(audio.currInputDevice, devString); data/fasttracker2-1.24/src/ft2_audioselector.c:378: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(audio.currOutputDevice, devString); data/fasttracker2-1.24/src/ft2_audioselector.c:413: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(audio.currInputDevice, devString); data/fasttracker2-1.24/src/ft2_audioselector.c:450:4: [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(audio.outputDeviceNames[i], deviceName); data/fasttracker2-1.24/src/ft2_audioselector.c:477:4: [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(audio.inputDeviceNames[i], deviceName); data/fasttracker2-1.24/src/ft2_diskop.c:473:11: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. retVal = access(strU, F_OK); data/fasttracker2-1.24/src/ft2_diskop.c:647:4: [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(modTmpFName, filename); data/fasttracker2-1.24/src/ft2_diskop.c:655:4: [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(insTmpFName, filename); data/fasttracker2-1.24/src/ft2_diskop.c:659:4: [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(smpTmpFName, filename); data/fasttracker2-1.24/src/ft2_diskop.c:663:4: [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(patTmpFName, filename); data/fasttracker2-1.24/src/ft2_diskop.c:667:4: [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(trkTmpFName, filename); data/fasttracker2-1.24/src/ft2_diskop.c:772: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(name, ext); data/fasttracker2-1.24/src/ft2_diskop.c:812:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(extBuffer, ".. %s", &name[extOffset]); // "testtestte... .xm" data/fasttracker2-1.24/src/ft2_diskop.c:846:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(FReq_SysReqText, "Overwrite file \"%s\"?", nameTmp); data/fasttracker2-1.24/src/ft2_diskop.c:1066:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(FReq_SysReqText, "Delete directory \"%s\"?", nameTmp); data/fasttracker2-1.24/src/ft2_diskop.c:1068:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(FReq_SysReqText, "Delete file \"%s\"?", nameTmp); data/fasttracker2-1.24/src/ft2_diskop.c:1615: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(&p[1], name); data/fasttracker2-1.24/src/ft2_diskop.c:1628:4: [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(p, name); data/fasttracker2-1.24/src/ft2_diskop.c:1638: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(p, name); data/fasttracker2-1.24/src/ft2_diskop.c:1803:4: [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(FReq_NameTemp, delimiter + 1); data/fasttracker2-1.24/src/ft2_diskop.c:1805:4: [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(FReq_NameTemp, delimiter); data/fasttracker2-1.24/src/ft2_events.c:230:6: [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((char *)sharedMemBuf, argv[1]); data/fasttracker2-1.24/src/ft2_help.c:46:2: [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(t->text, text); data/fasttracker2-1.24/src/ft2_help.c:169: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(t->text, s); data/fasttracker2-1.24/src/ft2_module_loader.c:2518:2: [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(filenameU, argv[1]); data/fasttracker2-1.24/src/ft2_module_loader.c:2570:2: [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(fullPathU, fullPathUTF8); data/fasttracker2-1.24/src/ft2_textboxes.c:337: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(&t->textPtr[endOffset+copiedTextLength], endPart); data/fasttracker2-1.24/src/ft2_trim.c:238: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(tmpInstrName[1+newInst], tmpInstName[i]); data/fasttracker2-1.24/src/ft2_trim.c:269:4: [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(song.instrName[1+newInst], tmpInstName[i]); data/fasttracker2-1.24/src/ft2_trim.c:1092:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(sizeBuf, "%s", formatBytes(xmSize64, true)); data/fasttracker2-1.24/src/ft2_trim.c:1102:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(sizeBuf, "%s", formatBytes(xmAfterTrimSize64, true)); data/fasttracker2-1.24/src/ft2_trim.c:1112:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(sizeBuf, "%s", formatBytes(spaceSaved64, false)); data/fasttracker2-1.24/src/ft2_unicode.h:15:30: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. #define UNICHAR_STRCPY(a, b) wcscpy(a, b) data/fasttracker2-1.24/src/ft2_unicode.h:19:30: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). #define UNICHAR_STRCAT(a, b) wcscat(a, b) data/fasttracker2-1.24/src/ft2_unicode.h:31:30: [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). #define UNICHAR_STRCPY(a, b) strcpy(a, b) data/fasttracker2-1.24/src/ft2_unicode.h:35:30: [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). #define UNICHAR_STRCAT(a, b) strcat(a, b) data/fasttracker2-1.24/src/ft2_video.c:117:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(fpsTextBuf, "Frames per second: %.4f\n" \ data/fasttracker2-1.24/src/ft2_video.c:214:2: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(strBuf, sizeof (strBuf), fmt, args); data/fasttracker2-1.24/src/ft2_video.c:882:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(wndTitle, "Fasttracker II clone v%s - \"%s\" (unsaved)", PROG_VER_STR, songTitle); data/fasttracker2-1.24/src/ft2_video.c:884:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(wndTitle, "Fasttracker II clone v%s - \"%s\"", PROG_VER_STR, songTitle); data/fasttracker2-1.24/src/ft2_video.c:889:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(wndTitle, "Fasttracker II clone v%s - \"untitled\" (unsaved)", PROG_VER_STR); data/fasttracker2-1.24/src/ft2_video.c:891:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(wndTitle, "Fasttracker II clone v%s - \"untitled\"", PROG_VER_STR); data/fasttracker2-1.24/src/ft2_wav_renderer.c:391:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(WAV_SysReqText, "Overwrite file \"%s\"?", nameTmp); data/fasttracker2-1.24/src/gfxdata/bmp/win32 tools/bin2h.c:217:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(fileNameOut, "%s.h", dataName); data/fasttracker2-1.24/src/gfxdata/bmp/win32 tools/bin2h.c:227: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(dataName, DATA_NAME); data/fasttracker2-1.24/src/helpdata/code/ft2hlp_to_h.c:14:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(command, "del %s 2>NUL", TMP_FILENAME); data/fasttracker2-1.24/src/helpdata/code/ft2hlp_to_h.c:16:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(command, "rm %s &> /dev/null", TMP_FILENAME); data/fasttracker2-1.24/src/helpdata/code/ft2hlp_to_h.c:19:2: [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. system(command); data/fasttracker2-1.24/src/ft2_config.c:606:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (chdir(getenv("HOME")) == 0) data/fasttracker2-1.24/src/ft2_config.c:651:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (chdir(getenv("HOME")) == 0) data/fasttracker2-1.24/src/ft2_diskop.c:2282:8: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("HOME") != NULL) data/fasttracker2-1.24/src/ft2_diskop.c:2283:38: [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. UNICHAR_STRCPY(FReq_ModCurPathU, getenv("HOME")); data/fasttracker2-1.24/src/rtmidi/RtMidi.cpp:2475:7: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection( &(apiData->_mutex) ); data/fasttracker2-1.24/src/rtmidi/RtMidi.cpp:2629:5: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection( &(data->_mutex) ); data/fasttracker2-1.24/src/ft2_about.c:239:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char verText[32]; data/fasttracker2-1.24/src/ft2_audio.h:48:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *inputDeviceNames[MAX_AUDIO_DEVICES], *outputDeviceNames[MAX_AUDIO_DEVICES]; data/fasttracker2-1.24/src/ft2_bmp.c:162: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(pal, &src[0x36], palEntries * sizeof (uint32_t)); data/fasttracker2-1.24/src/ft2_bmp.c:275: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(pal, &src[0x36], palEntries * sizeof (uint32_t)); data/fasttracker2-1.24/src/ft2_bmp.c:363: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(pal, &src[0x36], palEntries * sizeof (uint32_t)); data/fasttracker2-1.24/src/ft2_config.c:81: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(&config, configBuffer, CONFIG_FILE_SIZE); data/fasttracker2-1.24/src/ft2_config.c:105: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(palTable[11], config.userPal, sizeof (pal16) * 16); data/fasttracker2-1.24/src/ft2_config.c:202:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[8]; data/fasttracker2-1.24/src/ft2_config.c:203:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str, "%02d", config.boostLevel); data/fasttracker2-1.24/src/ft2_config.c:209: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(configBuffer, defConfigData, CONFIG_FILE_SIZE); data/fasttracker2-1.24/src/ft2_config.c:420: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(config.userPal, palTable[11], sizeof (pal16) * 16); data/fasttracker2-1.24/src/ft2_config.c:422: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(configBuffer, &config, CONFIG_FILE_SIZE); data/fasttracker2-1.24/src/ft2_config.c:555: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). if ((f = fopen("FT2.CFG", "rb")) == NULL) data/fasttracker2-1.24/src/ft2_config.c:604: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). if ((f = fopen("FT2.CFG", "rb")) == NULL) data/fasttracker2-1.24/src/ft2_config.c:628:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(editor.configFileLocation, "/FT2.CFG"); data/fasttracker2-1.24/src/ft2_config.c:649: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). if ((f = fopen("FT2.CFG", "rb")) == NULL) data/fasttracker2-1.24/src/ft2_config.c:679:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(editor.configFileLocation, "/FT2.CFG"); data/fasttracker2-1.24/src/ft2_config.c:747:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[8]; data/fasttracker2-1.24/src/ft2_config.c:748:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str, "%02d", config.recQuantRes); data/fasttracker2-1.24/src/ft2_config.c:754:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[8]; data/fasttracker2-1.24/src/ft2_config.c:755:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str, "%02d", config.recMIDIChn); data/fasttracker2-1.24/src/ft2_config.c:786:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[8]; data/fasttracker2-1.24/src/ft2_config.c:787:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str, "%03d", config.recMIDIVolSens); data/fasttracker2-1.24/src/ft2_config.h:98:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[22]; data/fasttracker2-1.24/src/ft2_config.h:109:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cfgID[35]; data/fasttracker2-1.24/src/ft2_config.h:133:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char modulesPath[79+1]; data/fasttracker2-1.24/src/ft2_config.h:135:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char instrPath[79+1]; data/fasttracker2-1.24/src/ft2_config.h:137:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char samplesPath[79+1]; data/fasttracker2-1.24/src/ft2_config.h:139:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char patternsPath[79+1]; data/fasttracker2-1.24/src/ft2_config.h:141:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tracksPath[79+1]; data/fasttracker2-1.24/src/ft2_diskop.c:75:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char FReq_SysReqText[196], *FReq_FileName, *FReq_NameTemp; data/fasttracker2-1.24/src/ft2_diskop.c:145:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char logicalDriveNames[26][3] = data/fasttracker2-1.24/src/ft2_diskop.c:180:3: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, config.modulesPath, -1, FReq_ModCurPathU, 80); data/fasttracker2-1.24/src/ft2_diskop.c:184:3: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, config.instrPath, -1, FReq_InsCurPathU, 80); data/fasttracker2-1.24/src/ft2_diskop.c:190:3: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, config.samplesPath, -1, FReq_SmpCurPathU, 80); data/fasttracker2-1.24/src/ft2_diskop.c:196:3: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, config.patternsPath, -1, FReq_PatCurPathU, 80); data/fasttracker2-1.24/src/ft2_diskop.c:202:3: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, config.tracksPath, -1, FReq_TrkCurPathU, 80); data/fasttracker2-1.24/src/ft2_diskop.c:306:2: [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(modTmpFName, "untitled.xm"); data/fasttracker2-1.24/src/ft2_diskop.c:307:2: [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(insTmpFName, "untitled.xi"); data/fasttracker2-1.24/src/ft2_diskop.c:308:2: [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(smpTmpFName, "untitled.wav"); data/fasttracker2-1.24/src/ft2_diskop.c:309:2: [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(patTmpFName, "untitled.xp"); data/fasttracker2-1.24/src/ft2_diskop.c:310:2: [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(trkTmpFName, "untitled.xt"); data/fasttracker2-1.24/src/ft2_diskop.c:787:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char extBuffer[24]; data/fasttracker2-1.24/src/ft2_diskop.c:817:4: [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(&name[j - extLen], extBuffer, extLen + 1); data/fasttracker2-1.24/src/ft2_diskop.c:836:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nameTmp[128]; data/fasttracker2-1.24/src/ft2_diskop.c:1644:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, &name[i+1], extLen - 1); data/fasttracker2-1.24/src/ft2_diskop.c:1645:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&p[extLen-1], name, i); data/fasttracker2-1.24/src/ft2_diskop.c:1722:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sizeStrBuffer[16]; data/fasttracker2-1.24/src/ft2_diskop.c:1740:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(sizeStrBuffer, "%dM", printFilesize); data/fasttracker2-1.24/src/ft2_diskop.c:1749:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(sizeStrBuffer, "%dk", printFilesize); data/fasttracker2-1.24/src/ft2_diskop.c:1755:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(sizeStrBuffer, "%d", printFilesize); data/fasttracker2-1.24/src/ft2_diskop.c:1793:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(FReq_NameTemp, ".\001"); // special character in font data/fasttracker2-1.24/src/ft2_diskop.c:1796:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(FReq_NameTemp, ".."); data/fasttracker2-1.24/src/ft2_diskop.c:1948:3: [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(&FReq_Buffer[FReq_FileCount], &tmpBuffer, sizeof (DirRec)); data/fasttracker2-1.24/src/ft2_diskop.c:1968:4: [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(&FReq_Buffer[FReq_FileCount], &tmpBuffer, sizeof (DirRec)); data/fasttracker2-1.24/src/ft2_edit.c:958:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[48]; data/fasttracker2-1.24/src/ft2_edit.c:966:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(text, "%d note(s) will be erased! Proceed?", transpDelNotes); data/fasttracker2-1.24/src/ft2_edit.c:1835:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *val1, *val2, volstr[32 + 1]; data/fasttracker2-1.24/src/ft2_edit.c:1838:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(volstr, "%0.2f,%0.2f", dVolScaleFK1, dVolScaleFK2); data/fasttracker2-1.24/src/ft2_events.c:194:4: [2] (buffer) CopyMemory: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. CopyMemory((PVOID)sharedMemBuf, &video.hWnd, sizeof (HWND)); data/fasttracker2-1.24/src/ft2_events.c:217:4: [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(&hWnd, sharedMemBuf, sizeof (HWND)); data/fasttracker2-1.24/src/ft2_events.c:230:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. strcpy((char *)sharedMemBuf, argv[1]); data/fasttracker2-1.24/src/ft2_events.c:297:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fileName[32]; data/fasttracker2-1.24/src/ft2_events.c:314: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(fileName, "backup%03d.xm", i); data/fasttracker2-1.24/src/ft2_events.c:340:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fileName[32]; data/fasttracker2-1.24/src/ft2_events.c:355: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(fileName, "backup%03d.xm", i); data/fasttracker2-1.24/src/ft2_help.c:22:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[100]; data/fasttracker2-1.24/src/ft2_help.c:63: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(output, &helpData[helpBufferPos], strLen); data/fasttracker2-1.24/src/ft2_help.c:110:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[256], text2[256], *s, *sEnd, *s2, *s3; data/fasttracker2-1.24/src/ft2_help.c:264:3: [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(subjPtrArr[subj], tempText, HELP_SIZE * textLine); data/fasttracker2-1.24/src/ft2_inst_ed.c:32:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char id[22], copyright[60]; data/fasttracker2-1.24/src/ft2_inst_ed.c:36:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char reserved1[36]; data/fasttracker2-1.24/src/ft2_inst_ed.c:38:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char instrName[16]; data/fasttracker2-1.24/src/ft2_inst_ed.c:41:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char reserved2[40]; data/fasttracker2-1.24/src/ft2_inst_ed.c:45:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char reserved3[40]; data/fasttracker2-1.24/src/ft2_inst_ed.c:54:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[7]; data/fasttracker2-1.24/src/ft2_inst_ed.c:64:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char reserved[36]; data/fasttracker2-1.24/src/ft2_inst_ed.c:73:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sig[21], name[23], progName[20]; data/fasttracker2-1.24/src/ft2_inst_ed.c:97:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char sharpNote1Char[12] = { 'C', 'C', 'D', 'D', 'E', 'F', 'F', 'G', 'G', 'A', 'A', 'B' }; data/fasttracker2-1.24/src/ft2_inst_ed.c:98:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char sharpNote2Char[12] = { '-', '#', '-', '#', '-', '-', '#', '-', '#', '-', '#', '-' }; data/fasttracker2-1.24/src/ft2_inst_ed.c:99:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char flatNote1Char[12] = { 'C', 'D', 'D', 'E', 'E', 'F', 'G', 'G', 'A', 'A', 'B', 'B' }; data/fasttracker2-1.24/src/ft2_inst_ed.c:100:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char flatNote2Char[12] = { '-', 'b', '-', 'b', '-', '-', 'b', '-', 'b', '-', 'b', '-' }; data/fasttracker2-1.24/src/ft2_inst_ed.c:147:4: [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(instr[destIns], instr[sourceIns], sizeof (instrTyp)); data/fasttracker2-1.24/src/ft2_inst_ed.c:165: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(dst->origPek, src->origPek, src->len + LOOP_FIX_LEN); data/fasttracker2-1.24/src/ft2_inst_ed.c:559: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(ins->envVP, config.stdEnvP[num][0], sizeof (int16_t) * 12 * 2); data/fasttracker2-1.24/src/ft2_inst_ed.c:577: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(ins->envPP, config.stdEnvP[num][1], sizeof (int16_t) * 12 * 2); data/fasttracker2-1.24/src/ft2_inst_ed.c:603:3: [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(config.stdEnvP[num][0], ins->envVP, sizeof (int16_t) * 12 * 2); data/fasttracker2-1.24/src/ft2_inst_ed.c:636:3: [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(config.stdEnvP[num][1], ins->envPP, sizeof (int16_t) * 12 * 2); data/fasttracker2-1.24/src/ft2_inst_ed.c:2884: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(ih.sig, "Extended Instrument: ", 21); data/fasttracker2-1.24/src/ft2_inst_ed.c:2886: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(ih.name, song.instrName[saveInstrNr], strlen(song.instrName[saveInstrNr])); data/fasttracker2-1.24/src/ft2_inst_ed.c:2888: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(ih.progName, PROG_NAME_STR, 20); data/fasttracker2-1.24/src/ft2_inst_ed.c:2893: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(ih.ta, ins->ta, 96); data/fasttracker2-1.24/src/ft2_inst_ed.c:2894: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(ih.envVP, ins->envVP, 12*2*sizeof(int16_t)); data/fasttracker2-1.24/src/ft2_inst_ed.c:2895: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(ih.envPP, ins->envPP, 12*2*sizeof(int16_t)); data/fasttracker2-1.24/src/ft2_inst_ed.c:2934:3: [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(dst->name, s->name, 22); data/fasttracker2-1.24/src/ft2_inst_ed.c:3068:3: [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(song.instrName[editor.curInstr], ih.name, 22); data/fasttracker2-1.24/src/ft2_inst_ed.c:3087:4: [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(ins->ta, ih.ta, 96); data/fasttracker2-1.24/src/ft2_inst_ed.c:3088:4: [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(ins->envVP, ih.envVP, 12*2*sizeof(int16_t)); data/fasttracker2-1.24/src/ft2_inst_ed.c:3089:4: [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(ins->envPP, ih.envPP, 12*2*sizeof(int16_t)); data/fasttracker2-1.24/src/ft2_inst_ed.c:3168: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(s->name, src->name, 22); data/fasttracker2-1.24/src/ft2_inst_ed.c:3276:4: [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(song.instrName[editor.curInstr], ih_PAT.instrName, 16); data/fasttracker2-1.24/src/ft2_inst_ed.c:3318: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(s->name, ih_PATWave.name, 7); data/fasttracker2-1.24/src/ft2_inst_ed.c:3406:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char header[22]; data/fasttracker2-1.24/src/ft2_main.c:280:2: [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(ui.fullscreenButtonText, "Go fullscreen"); data/fasttracker2-1.24/src/ft2_midi.h:14:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *inputDeviceName, *inputDeviceNames[MAX_MIDI_DEVICES]; data/fasttracker2-1.24/src/ft2_module_loader.c:68:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[12]; data/fasttracker2-1.24/src/ft2_module_loader.c:83:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[20], sig[8]; data/fasttracker2-1.24/src/ft2_module_loader.c:98:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dosName[12]; data/fasttracker2-1.24/src/ft2_module_loader.c:106:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[28], id[4]; data/fasttracker2-1.24/src/ft2_module_loader.c:115:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[28]; data/fasttracker2-1.24/src/ft2_module_loader.c:120:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char id[4]; data/fasttracker2-1.24/src/ft2_module_loader.c:154:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char modSig[32][5]; data/fasttracker2-1.24/src/ft2_module_loader.c:218:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ID[16]; data/fasttracker2-1.24/src/ft2_module_loader.c:294:3: [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(songTmp.songTab, h_MOD31.songTab, 128); data/fasttracker2-1.24/src/ft2_module_loader.c:316:3: [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(songTmp.songTab, h_MOD15.songTab, 128); data/fasttracker2-1.24/src/ft2_module_loader.c:344:4: [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(songTmp.instrName[1+a], smp->name, 22); data/fasttracker2-1.24/src/ft2_module_loader.c:400: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(songTmp.name, h_MOD31.name, 20); data/fasttracker2-1.24/src/ft2_module_loader.c:628:4: [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(s->name, songTmp.instrName[1+a], 22); data/fasttracker2-1.24/src/ft2_module_loader.c:772: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(songTmp.songTab, h_STM.songTab, 128); data/fasttracker2-1.24/src/ft2_module_loader.c:790: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(songTmp.name, h_STM.name, 20); data/fasttracker2-1.24/src/ft2_module_loader.c:915:3: [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(&songTmp.instrName[1+i], h_STM.instr[i].name, 12); data/fasttracker2-1.24/src/ft2_module_loader.c:1106: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(songTmp.name, h_S3M.name, 20); data/fasttracker2-1.24/src/ft2_module_loader.c:1482: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(ptnOfs, ha, 512); data/fasttracker2-1.24/src/ft2_module_loader.c:1502:3: [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(songTmp.instrName[1+i], h_S3MInstr.name, 22); data/fasttracker2-1.24/src/ft2_module_loader.c:1549: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(s->name, h_S3MInstr.name, 21); data/fasttracker2-1.24/src/ft2_module_loader.c:1656:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpText[128]; data/fasttracker2-1.24/src/ft2_module_loader.c:1700:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tmpText, "Error loading .xm: Unsupported XM version (v%1d.%1d%1d)", data/fasttracker2-1.24/src/ft2_module_loader.c:1745: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(songTmp.name, h.name, 20); data/fasttracker2-1.24/src/ft2_module_loader.c:1767:3: [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(songTmp.songTab, h.songTab, songTmp.len); data/fasttracker2-1.24/src/ft2_module_loader.c:1979:3: [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(songTmp.instrName[i], ih.name, 22); data/fasttracker2-1.24/src/ft2_module_loader.c:1993:4: [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(ins->ta, ih.ta, 96); data/fasttracker2-1.24/src/ft2_module_loader.c:1994:4: [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(ins->envVP, ih.envVP, 12*2*sizeof(int16_t)); data/fasttracker2-1.24/src/ft2_module_loader.c:1995:4: [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(ins->envPP, ih.envPP, 12*2*sizeof(int16_t)); data/fasttracker2-1.24/src/ft2_module_loader.c:2071: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(s->name, src->name, 22); data/fasttracker2-1.24/src/ft2_module_loader.c:2408: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(&song, &songTmp, sizeof (songTyp)); data/fasttracker2-1.24/src/ft2_module_loader.c:2516:2: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_UTF8, 0, argv[1], -1, filenameU, filenameLen); data/fasttracker2-1.24/src/ft2_module_loader.c:2568:2: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_UTF8, 0, fullPathUTF8, -1, fullPathU, fullPathLen); data/fasttracker2-1.24/src/ft2_module_saver.c:26:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char modSig[32][5] = data/fasttracker2-1.24/src/ft2_module_saver.c:53: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(h.sig, "Extended Module: ", 17); data/fasttracker2-1.24/src/ft2_module_saver.c:56: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(h.name, song.name, strlen(song.name)); data/fasttracker2-1.24/src/ft2_module_saver.c:57: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(h.progName, PROG_NAME_STR, 20); data/fasttracker2-1.24/src/ft2_module_saver.c:85: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(h.songTab, song.songTab, sizeof (song.songTab)); data/fasttracker2-1.24/src/ft2_module_saver.c:149:3: [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(ih.name, song.instrName[i], strlen(song.instrName[i])); data/fasttracker2-1.24/src/ft2_module_saver.c:159:4: [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(ih.ta, ins->ta, 96); data/fasttracker2-1.24/src/ft2_module_saver.c:160:4: [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(ih.envVP, ins->envVP, 12*2*sizeof(int16_t)); data/fasttracker2-1.24/src/ft2_module_saver.c:161:4: [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(ih.envPP, ins->envPP, 12*2*sizeof(int16_t)); data/fasttracker2-1.24/src/ft2_module_saver.c:202: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(dst->name, s->name, nameLen); data/fasttracker2-1.24/src/ft2_module_saver.c:366: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(hm.songTab, song.songTab, song.len); data/fasttracker2-1.24/src/ft2_module_saver.c:377:3: [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(hm.sig, (ap > 64) ? "M!K!" : "M.K.", 4); data/fasttracker2-1.24/src/ft2_module_saver.c:379:3: [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(hm.sig, modSig[song.antChn-1], 4); data/fasttracker2-1.24/src/ft2_nibbles.c:46:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char nibblesCheatBuffer[16]; data/fasttracker2-1.24/src/ft2_nibbles.c:48:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char convHexTable2[10] = { 7, 8, 9, 10, 11, 12, 13, 16, 17, 18 }; data/fasttracker2-1.24/src/ft2_nibbles.c:431:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[21 + 1]; data/fasttracker2-1.24/src/ft2_nibbles.c:466:4: [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(name, "Unknown"); data/fasttracker2-1.24/src/ft2_nibbles.c:474: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(&config.NI_HighScore[k+1], &config.NI_HighScore[k], sizeof (highScoreType)); data/fasttracker2-1.24/src/ft2_nibbles.c:483:4: [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(h->name, name, k); data/fasttracker2-1.24/src/ft2_nibbles.c:492:4: [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(name, "Unknown"); data/fasttracker2-1.24/src/ft2_nibbles.c:500: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(&config.NI_HighScore[k+1], &config.NI_HighScore[k], sizeof (highScoreType)); data/fasttracker2-1.24/src/ft2_nibbles.c:509:4: [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(h->name, name, k); data/fasttracker2-1.24/src/ft2_nibbles.c:533:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[24]; data/fasttracker2-1.24/src/ft2_nibbles.c:535:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(text, "Level %d finished!", NI_Level + 1); data/fasttracker2-1.24/src/ft2_pattern_ed.c:2146:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[4]; data/fasttracker2-1.24/src/ft2_replayer.c:2487:3: [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(ins->envVP, config.stdEnvP[i][0], 2*2*12); data/fasttracker2-1.24/src/ft2_replayer.c:2502:3: [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(ins->envPP, config.stdEnvP[i][1], 2*2*12); data/fasttracker2-1.24/src/ft2_replayer.c:2520: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(ins->envVP, config.stdEnvP[0][0], 2*2*12); data/fasttracker2-1.24/src/ft2_replayer.c:2527: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(ins->envPP, config.stdEnvP[0][1], 2*2*12); data/fasttracker2-1.24/src/ft2_replayer.c:2946: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(&instr[130]->samp[0], &instr[inst]->samp[smpNr], sizeof (sampleTyp)); data/fasttracker2-1.24/src/ft2_replayer.c:3004: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(s, &instr[inst]->samp[smpNr], sizeof (sampleTyp)); data/fasttracker2-1.24/src/ft2_replayer.h:61:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sig[17], name[21], progName[20]; data/fasttracker2-1.24/src/ft2_replayer.h:86:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[22]; data/fasttracker2-1.24/src/ft2_replayer.h:98:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[20]; data/fasttracker2-1.24/src/ft2_replayer.h:109:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[20]; data/fasttracker2-1.24/src/ft2_replayer.h:112:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sig[4]; data/fasttracker2-1.24/src/ft2_replayer.h:127:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[22]; data/fasttracker2-1.24/src/ft2_replayer.h:137:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[22]; data/fasttracker2-1.24/src/ft2_replayer.h:166:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[22+1]; data/fasttracker2-1.24/src/ft2_replayer.h:214:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[20+1], instrName[1+MAX_INST][22+1]; data/fasttracker2-1.24/src/ft2_sample_ed.c:28:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char sharpNote1Char[12] = { 'C', 'C', 'D', 'D', 'E', 'F', 'F', 'G', 'G', 'A', 'A', 'B' }; data/fasttracker2-1.24/src/ft2_sample_ed.c:29:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char sharpNote2Char[12] = { '-', '#', '-', '#', '-', '-', '#', '-', '#', '-', '#', '-' }; data/fasttracker2-1.24/src/ft2_sample_ed.c:30:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char flatNote1Char[12] = { 'C', 'D', 'D', 'E', 'E', 'F', 'G', 'G', 'A', 'A', 'B', 'B' }; data/fasttracker2-1.24/src/ft2_sample_ed.c:31:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char flatNote2Char[12] = { '-', 'b', '-', 'b', '-', '-', 'b', '-', 'b', '-', 'b', '-' }; data/fasttracker2-1.24/src/ft2_sample_ed.c:33:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char smpEd_SysReqText[64]; data/fasttracker2-1.24/src/ft2_sample_ed.c:514: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(dst, src, sizeof (sampleTyp)); data/fasttracker2-1.24/src/ft2_sample_ed.c:515: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(p, src->origPek, src->len + LOOP_FIX_LEN); data/fasttracker2-1.24/src/ft2_sample_ed.c:1667:4: [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(smpCopyBuff, &s->pek[r1], r2 - r1); data/fasttracker2-1.24/src/ft2_sample_ed.c:1798: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(smpCopyBuff, &s->pek[smpEd_Rx1], smpEd_Rx2 - smpEd_Rx1); data/fasttracker2-1.24/src/ft2_sample_ed.c:1844: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(s->pek, smpCopyBuff, smpCopySize); data/fasttracker2-1.24/src/ft2_sample_ed.c:1868:4: [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(&pek[offset], smpCopyBuff, length); data/fasttracker2-1.24/src/ft2_sample_ed.c:1887:4: [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(&pek[offset], smpCopyBuff, length); data/fasttracker2-1.24/src/ft2_sample_ed.c:1974:3: [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(newPek, s->pek, smpEd_Rx1); data/fasttracker2-1.24/src/ft2_sample_loader.c:198:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *tmpFilename, *tmpPtr, compType[4]; data/fasttracker2-1.24/src/ft2_sample_loader.c:710:3: [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(s, &tmpSmp, sizeof (sampleTyp)); data/fasttracker2-1.24/src/ft2_sample_loader.c:741:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *tmpFilename, *tmpPtr, hdr[4 + 1]; data/fasttracker2-1.24/src/ft2_sample_loader.c:996:3: [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(s, &tmpSmp, sizeof (sampleTyp)); data/fasttracker2-1.24/src/ft2_sample_loader.c:1135:3: [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(s, &tmpSmp, sizeof (sampleTyp)); data/fasttracker2-1.24/src/ft2_sample_loader.c:1943:3: [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(s, &tmpSmp, sizeof (sampleTyp)); data/fasttracker2-1.24/src/ft2_sample_loader.c:1974:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpBuffer[16+1]; data/fasttracker2-1.24/src/ft2_sampling.c:52: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(&s->pek[s->len], stream, len); data/fasttracker2-1.24/src/ft2_sampling.c:70:3: [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(currWriteBuf, &s->pek[currSampleLen], samplingBufferBytes); data/fasttracker2-1.24/src/ft2_sampling.c:412: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(s->name, "Left sample"); data/fasttracker2-1.24/src/ft2_sampling.c:426:4: [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(nextSmp->name, "Right sample"); data/fasttracker2-1.24/src/ft2_sampling.c:435: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(s->name, "Mono-mixed sample"); data/fasttracker2-1.24/src/ft2_structs.h:44:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fullscreenButtonText[24]; data/fasttracker2-1.24/src/ft2_sysreqs.c:20:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char *buttonText[NUM_SYSREQ_TYPES][5] = data/fasttracker2-1.24/src/ft2_tables.c:339:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *dec2StrTab[100] = data/fasttracker2-1.24/src/ft2_tables.c:350:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *dec3StrTab[256] = data/fasttracker2-1.24/src/ft2_tables.c:696:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char chDecTab1[MAX_VOICES+1] = data/fasttracker2-1.24/src/ft2_tables.c:704:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char chDecTab2[MAX_VOICES+1] = data/fasttracker2-1.24/src/ft2_tables.h:22:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char *dec2StrTab[100]; data/fasttracker2-1.24/src/ft2_tables.h:23:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char *dec3StrTab[256]; data/fasttracker2-1.24/src/ft2_tables.h:39:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char chDecTab1[MAX_VOICES+1]; data/fasttracker2-1.24/src/ft2_tables.h:40:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char chDecTab2[MAX_VOICES+1]; data/fasttracker2-1.24/src/ft2_textboxes.c:154:3: [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(&t->textPtr[start], &t->textPtr[end], length); data/fasttracker2-1.24/src/ft2_textboxes.c:325:3: [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(endPart, &t->textPtr[endOffset], endPartLength); data/fasttracker2-1.24/src/ft2_textboxes.c:330: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(&t->textPtr[endOffset], copiedText, copiedTextLength); data/fasttracker2-1.24/src/ft2_trim.c:22:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char byteFormatBuffer[64], tmpInstrName[1 + MAX_INST][22 + 1], tmpInstName[MAX_INST][22 + 1]; data/fasttracker2-1.24/src/ft2_trim.c:225:3: [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(tmpInstName, &tmpInstrName[1], MAX_INST * sizeof (song.instrName[0])); data/fasttracker2-1.24/src/ft2_trim.c:226:3: [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(tmpInst, &tmpInstr[1], MAX_INST * sizeof (instr[0])); data/fasttracker2-1.24/src/ft2_trim.c:237: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(&tmpInstr[1+newInst], &tmpInst[i], sizeof (tmpInst[0])); data/fasttracker2-1.24/src/ft2_trim.c:255: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(tmpInstName, &song.instrName[1], MAX_INST * sizeof (song.instrName[0])); data/fasttracker2-1.24/src/ft2_trim.c:256: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(tmpInst, &instr[1], MAX_INST * sizeof (instr[0])); data/fasttracker2-1.24/src/ft2_trim.c:268:4: [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(&instr[1+newInst], &tmpInst[i], sizeof (instr[0])); data/fasttracker2-1.24/src/ft2_trim.c:320: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(oldPatts, p, usedPatts * sizeof (tonTyp *)); data/fasttracker2-1.24/src/ft2_trim.c:321: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(oldPattLens, pLens, usedPatts * sizeof (int16_t)); data/fasttracker2-1.24/src/ft2_trim.c:438:4: [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(tempSamples, ins->samp, l * sizeof (sampleTyp)); data/fasttracker2-1.24/src/ft2_trim.c:1040:4: [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(byteFormatBuffer, "%.1fGB", dBytes); data/fasttracker2-1.24/src/ft2_trim.c:1042:4: [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(byteFormatBuffer, "%dGB", roundUp ? (int32_t)ceil(dBytes) : (int32_t)dBytes); data/fasttracker2-1.24/src/ft2_trim.c:1049:4: [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(byteFormatBuffer, "%.1fMB", dBytes); data/fasttracker2-1.24/src/ft2_trim.c:1051:4: [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(byteFormatBuffer, "%dMB", roundUp ? (int32_t)ceil(dBytes) : (int32_t)dBytes); data/fasttracker2-1.24/src/ft2_trim.c:1058:4: [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(byteFormatBuffer, "%.1fkB", dBytes); data/fasttracker2-1.24/src/ft2_trim.c:1060:4: [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(byteFormatBuffer, "%dkB", roundUp ? (int32_t)ceil(dBytes) : (int32_t)dBytes); data/fasttracker2-1.24/src/ft2_trim.c:1065:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(byteFormatBuffer, "%d", (int32_t)bytes); data/fasttracker2-1.24/src/ft2_trim.c:1073:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sizeBuf[16]; data/fasttracker2-1.24/src/ft2_unicode.c:34:12: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). reqSize = MultiByteToWideChar(437, 0, src, srcLen, 0, 0); data/fasttracker2-1.24/src/ft2_unicode.c:44:11: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). retVal = MultiByteToWideChar(437, 0, src, srcLen, w, reqSize); data/fasttracker2-1.24/src/ft2_unicode.c:96:12: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). reqSize = MultiByteToWideChar(437, 0, src, srcLen, 0, 0); data/fasttracker2-1.24/src/ft2_unicode.c:106:11: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). retVal = MultiByteToWideChar(437, 0, src, srcLen, w, reqSize); data/fasttracker2-1.24/src/ft2_unicode.c:130:12: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). reqSize = MultiByteToWideChar(CP_UTF8, 0, src, srcLen, 0, 0); data/fasttracker2-1.24/src/ft2_unicode.c:140:11: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). retVal = MultiByteToWideChar(CP_UTF8, 0, src, srcLen, w, reqSize); data/fasttracker2-1.24/src/ft2_unicode.h:37:29: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). #define UNICHAR_FOPEN(a, b) fopen(a, b) data/fasttracker2-1.24/src/ft2_video.c:49:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char wndTitle[128 + PATH_MAX]; data/fasttracker2-1.24/src/ft2_video.c:60:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char fpsTextBuf[1024]; data/fasttracker2-1.24/src/ft2_video.c:209:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char strBuf[256]; data/fasttracker2-1.24/src/ft2_video.c:288:2: [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(ui.fullscreenButtonText, "Go windowed"); data/fasttracker2-1.24/src/ft2_video.c:313:2: [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(ui.fullscreenButtonText, "Go fullscreen"); data/fasttracker2-1.24/src/ft2_wav_renderer.c:39:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char WAV_SysReqText[192]; data/fasttracker2-1.24/src/ft2_wav_renderer.c:51:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[10]; data/fasttracker2-1.24/src/ft2_wav_renderer.c:56:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str, "%06d", WDFrequency); data/fasttracker2-1.24/src/ft2_wav_renderer.c:59:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str, "%05d", WDFrequency); data/fasttracker2-1.24/src/ft2_wav_renderer.c:63:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str, "%02d", WDAmp); data/fasttracker2-1.24/src/ft2_wav_renderer.c:381:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nameTmp[128]; data/fasttracker2-1.24/src/ft2_wav_renderer.c:413:33: [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). editor.wavRendererFileHandle = fopen(filename, "wb"); data/fasttracker2-1.24/src/gfxdata/bmp/win32 tools/bin2h.c:27:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char hex2ch[16] = { '0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F' }; data/fasttracker2-1.24/src/gfxdata/bmp/win32 tools/bin2h.c:28:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char fileNameOut[MAX_NAME_LEN + 8], dataType[32]; data/fasttracker2-1.24/src/gfxdata/bmp/win32 tools/bin2h.c:29:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char dataName[MAX_NAME_LEN + 1], dataNameUpper[MAX_NAME_LEN + 1]; data/fasttracker2-1.24/src/gfxdata/bmp/win32 tools/bin2h.c:53:2: [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(dataType, "uint8_t"); data/fasttracker2-1.24/src/gfxdata/bmp/win32 tools/bin2h.c:71:8: [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). fIn = fopen(argv[1], "rb"); data/fasttracker2-1.24/src/gfxdata/bmp/win32 tools/bin2h.c:86:9: [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). fOut = fopen(fileNameOut, "w"); data/fasttracker2-1.24/src/gfxdata/bmp/win32 tools/bin2h.c:262: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(dataType, "int8_t"); data/fasttracker2-1.24/src/gfxdata/bmp/win32 tools/bin2h.c:272: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). bytesPerLine = CLAMP(atoi(argv[i+1]), MIN_BYTES_PER_LINE, MAX_BYTES_PER_LINE); data/fasttracker2-1.24/src/helpdata/code/ft2hlp_to_h.c:11:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char command[256]; data/fasttracker2-1.24/src/helpdata/code/ft2hlp_to_h.c:38:8: [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). fIn = fopen(argv[1], "rb"); data/fasttracker2-1.24/src/helpdata/code/ft2hlp_to_h.c:40:8: [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). fIn = fopen("FT2.HLP", "rb"); data/fasttracker2-1.24/src/helpdata/code/ft2hlp_to_h.c:49:9: [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). fOut = fopen(TMP_FILENAME, "wb"); data/fasttracker2-1.24/src/helpdata/code/ft2hlp_to_h.c:119:8: [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). fIn = fopen(TMP_FILENAME, "rb"); data/fasttracker2-1.24/src/helpdata/code/ft2hlp_to_h.c:127:9: [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). fOut = fopen("ft2_help_data.h", "w"); data/fasttracker2-1.24/src/rtmidi/RtMidi.cpp:1188: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[128]; data/fasttracker2-1.24/src/rtmidi/RtMidi.cpp:1263: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[128]; data/fasttracker2-1.24/src/rtmidi/RtMidi.cpp:2370:17: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int wlength = MultiByteToWideChar( CP_ACP, 0, str, -1, NULL, 0 ); data/fasttracker2-1.24/src/rtmidi/RtMidi.cpp:2375:5: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar( CP_ACP, 0, str, -1, &wstrtemp[0], wlength ); data/fasttracker2-1.24/src/rtmidi/rtmidi_c.cpp:54: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(apis, rtmidi_compiled_apis, num * sizeof(enum RtMidiApi)); data/fasttracker2-1.24/src/rtmidi/rtmidi_c.cpp:262: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 (message, v.data (), (int) v.size ()); data/fasttracker2-1.24/src/ft2_audio.c:90: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). stringLen = (uint32_t)strlen(audio.lastWorkingAudioDeviceName); data/fasttracker2-1.24/src/ft2_audio.c:1094: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). stringLen = (uint32_t)strlen(audio.currOutputDevice); data/fasttracker2-1.24/src/ft2_audioselector.c:39: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). devStringLen = (uint32_t)strlen(devStringTmp); data/fasttracker2-1.24/src/ft2_audioselector.c:41:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(devString, devStringTmp, MAX_DEV_STR_LEN); data/fasttracker2-1.24/src/ft2_audioselector.c:53: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). devStringLen = (uint32_t)strlen(devString); data/fasttracker2-1.24/src/ft2_audioselector.c:87: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). devStringLen = (uint32_t)strlen(devStringTmp); data/fasttracker2-1.24/src/ft2_audioselector.c:89:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(devString, devStringTmp, MAX_DEV_STR_LEN); data/fasttracker2-1.24/src/ft2_audioselector.c:109: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). devStringLen = (uint32_t)strlen(devString); data/fasttracker2-1.24/src/ft2_audioselector.c:247: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). devStringLen = (uint32_t)strlen(devString); data/fasttracker2-1.24/src/ft2_audioselector.c:279: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). devStringLen = (uint32_t)strlen(devString); data/fasttracker2-1.24/src/ft2_audioselector.c:365: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). stringLen = (uint32_t)strlen(devString); data/fasttracker2-1.24/src/ft2_audioselector.c:400: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). stringLen = (uint32_t)strlen(devString); data/fasttracker2-1.24/src/ft2_audioselector.c:443: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). stringLen = (uint32_t)strlen(deviceName); data/fasttracker2-1.24/src/ft2_audioselector.c:470: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). stringLen = (uint32_t)strlen(deviceName); data/fasttracker2-1.24/src/ft2_config.c:413: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). config.modulesPathLen = (uint8_t)strlen(config.modulesPath); data/fasttracker2-1.24/src/ft2_config.c:414: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). config.instrPathLen = (uint8_t)strlen(config.instrPath); data/fasttracker2-1.24/src/ft2_config.c:415: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). config.samplesPathLen = (uint8_t)strlen(config.samplesPath); data/fasttracker2-1.24/src/ft2_config.c:416:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). config.patternsPathLen = (uint8_t)strlen(config.patternsPath); data/fasttracker2-1.24/src/ft2_config.c:417: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). config.tracksPathLen = (uint8_t)strlen(config.tracksPath); data/fasttracker2-1.24/src/ft2_diskop.c:207:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(FReq_ModCurPathU, config.modulesPath, 80); data/fasttracker2-1.24/src/ft2_diskop.c:211:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(FReq_InsCurPathU, config.instrPath, 80); data/fasttracker2-1.24/src/ft2_diskop.c:217:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(FReq_SmpCurPathU, config.samplesPath, 80); data/fasttracker2-1.24/src/ft2_diskop.c:223:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(FReq_PatCurPathU, config.patternsPath, 80); data/fasttracker2-1.24/src/ft2_diskop.c:229:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(FReq_TrkCurPathU, config.tracksPath, 80); data/fasttracker2-1.24/src/ft2_diskop.c:342: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). len = (int32_t)strlen(s); data/fasttracker2-1.24/src/ft2_diskop.c:594: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). len = (int32_t)strlen(p); data/fasttracker2-1.24/src/ft2_diskop.c:634:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(filename) > PATH_MAX-1) data/fasttracker2-1.24/src/ft2_diskop.c:750: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). len = (int32_t)strlen(name); data/fasttracker2-1.24/src/ft2_diskop.c:766: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). len = (int32_t)strlen(name); data/fasttracker2-1.24/src/ft2_diskop.c:767: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). extLen = (int32_t)strlen(ext); data/fasttracker2-1.24/src/ft2_diskop.c:790: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). j = (int32_t)strlen(name); data/fasttracker2-1.24/src/ft2_diskop.c:792: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). extLen = (int32_t)strlen(&name[extOffset]); data/fasttracker2-1.24/src/ft2_diskop.c:814: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). extLen = (int32_t)strlen(extBuffer); data/fasttracker2-1.24/src/ft2_diskop.c:840: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). nameLen = (uint32_t)strlen(name); data/fasttracker2-1.24/src/ft2_diskop.c:1104:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(FReq_NameTemp, nameTmp, PATH_MAX - 1); data/fasttracker2-1.24/src/ft2_diskop.c:1230: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). nameLen = (int32_t)strlen(name); data/fasttracker2-1.24/src/ft2_diskop.c:1257: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). extLen = (int32_t)strlen(&name[extOffset]); data/fasttracker2-1.24/src/ft2_diskop.c:1592: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). nameLen = (int32_t)strlen(name); data/fasttracker2-1.24/src/ft2_diskop.c:1792:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(FReq_NameTemp, p, 3); data/fasttracker2-1.24/src/ft2_diskop.c:1795: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(FReq_NameTemp, "/"); data/fasttracker2-1.24/src/ft2_diskop.c:1809: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). j = (int32_t)strlen(FReq_NameTemp); data/fasttracker2-1.24/src/ft2_edit.c:1845:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(val1) < 3) data/fasttracker2-1.24/src/ft2_edit.c:1849: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 (val2 == NULL || strlen(val2) < 3) data/fasttracker2-1.24/src/ft2_events.c:59:6: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. void usleep(uint32_t usec) data/fasttracker2-1.24/src/ft2_events.h:21:6: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. void usleep(uint32_t usec); data/fasttracker2-1.24/src/ft2_help.c:93: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). i = (int32_t)strlen(s) - 1; data/fasttracker2-1.24/src/ft2_help.c:201:6: [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(s2, " "); data/fasttracker2-1.24/src/ft2_help.c:205: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). strLen = (int16_t)strlen(s); data/fasttracker2-1.24/src/ft2_help.c:222: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). s3 = &s2[strlen(s2)]; data/fasttracker2-1.24/src/ft2_help.c:233: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). s3 = &s2[strlen(s2)]; data/fasttracker2-1.24/src/ft2_help.c:243:6: [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(s2, s, i); data/fasttracker2-1.24/src/ft2_help.c:247:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(s2, " "); data/fasttracker2-1.24/src/ft2_inst_ed.c:2886:47: [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). memcpy(ih.name, song.instrName[saveInstrNr], strlen(song.instrName[saveInstrNr])); data/fasttracker2-1.24/src/ft2_inst_ed.c:2933: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). dst->nameLen = (uint8_t)strlen(s->name); data/fasttracker2-1.24/src/ft2_main.c:394: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). tmpPathLen = strlen(tmpPath); data/fasttracker2-1.24/src/ft2_module_loader.c:2506: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). filenameLen = (uint32_t)strlen(argv[1]); data/fasttracker2-1.24/src/ft2_module_loader.c:2556: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). fullPathLen = (int32_t)strlen(fullPathUTF8); data/fasttracker2-1.24/src/ft2_module_saver.c:56: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). memcpy(h.name, song.name, strlen(song.name)); data/fasttracker2-1.24/src/ft2_module_saver.c:149: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). memcpy(ih.name, song.instrName[i], strlen(song.instrName[i])); data/fasttracker2-1.24/src/ft2_module_saver.c:198: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). uint8_t nameLen = (uint8_t)strlen(s->name); data/fasttracker2-1.24/src/ft2_nibbles.c:481: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). k = (int16_t)strlen(name); data/fasttracker2-1.24/src/ft2_nibbles.c:506: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). k = (int16_t)strlen(name); data/fasttracker2-1.24/src/ft2_sample_loader.c:668: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). j = (int32_t)strlen(tmpFilename); data/fasttracker2-1.24/src/ft2_sample_loader.c:681: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). filenameLen = (uint32_t)strlen(tmpPtr); data/fasttracker2-1.24/src/ft2_sample_loader.c:854:6: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (fgetc(f) != 0) // sample type data/fasttracker2-1.24/src/ft2_sample_loader.c:953: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). j = (int32_t)strlen(tmpFilename); data/fasttracker2-1.24/src/ft2_sample_loader.c:966: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). filenameLen = (uint32_t)strlen(tmpPtr); data/fasttracker2-1.24/src/ft2_sample_loader.c:1091: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). j = (int32_t)strlen(tmpFilename); data/fasttracker2-1.24/src/ft2_sample_loader.c:1104: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). filenameLen = (uint32_t)strlen(tmpPtr); data/fasttracker2-1.24/src/ft2_sample_loader.c:1886:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). chr = (char)fgetc(f); data/fasttracker2-1.24/src/ft2_sample_loader.c:1900: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). j = (int32_t)strlen(tmpFilename); data/fasttracker2-1.24/src/ft2_sample_loader.c:1913: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). filenameLen = (uint32_t)strlen(tmpPtr); data/fasttracker2-1.24/src/ft2_sample_loader.c:2180: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). len = (int32_t)strlen(fullPath); data/fasttracker2-1.24/src/ft2_sample_loader.c:2195: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). len = (int32_t)strlen(filename); data/fasttracker2-1.24/src/ft2_sample_loader.c:2219: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). len = (int32_t)strlen(fullPath); data/fasttracker2-1.24/src/ft2_sample_loader.c:2234: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). len = (int32_t)strlen(filename); data/fasttracker2-1.24/src/ft2_sample_saver.c:265: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). smpNameLen = (uint32_t)strlen(rangedDataStr); data/fasttracker2-1.24/src/ft2_sample_saver.c:451: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). smpNameLen = (uint32_t)strlen(smpNamePtr); data/fasttracker2-1.24/src/ft2_scopes.c:612: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(time32); data/fasttracker2-1.24/src/ft2_textboxes.c:152: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). length = (int32_t)strlen(&t->textPtr[end]); data/fasttracker2-1.24/src/ft2_textboxes.c:303: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). copiedTextLength = (int32_t)strlen(copiedText); data/fasttracker2-1.24/src/ft2_trim.c:1030: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(byteFormatBuffer, "0"); data/fasttracker2-1.24/src/ft2_unicode.c:30: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). srcLen = (int32_t)strlen(src); data/fasttracker2-1.24/src/ft2_unicode.c:51:20: [1] (buffer) wcslen: 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). srcLen = (int32_t)wcslen(w); data/fasttracker2-1.24/src/ft2_unicode.c:92: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). srcLen = (int32_t)strlen(src); data/fasttracker2-1.24/src/ft2_unicode.c:126: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). srcLen = (int32_t)strlen(src); data/fasttracker2-1.24/src/ft2_unicode.c:147:20: [1] (buffer) wcslen: 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). srcLen = (int32_t)wcslen(w); data/fasttracker2-1.24/src/ft2_unicode.c:256: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). srcLen = strlen(src); data/fasttracker2-1.24/src/ft2_unicode.c:302: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). srcLen = strlen(src); data/fasttracker2-1.24/src/ft2_unicode.h:16:34: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). #define UNICHAR_STRNCPY(a, b, c) wcsncpy(a, b, c) data/fasttracker2-1.24/src/ft2_unicode.h:26:27: [1] (buffer) wcslen: 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). #define UNICHAR_STRLEN(a) wcslen(a) data/fasttracker2-1.24/src/ft2_unicode.h:32:34: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). #define UNICHAR_STRNCPY(a, b, c) strncpy(a, b, c) data/fasttracker2-1.24/src/ft2_unicode.h:42: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). #define UNICHAR_STRLEN(a) strlen(a) data/fasttracker2-1.24/src/ft2_video.c:761:4: [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(time32); data/fasttracker2-1.24/src/ft2_wav_renderer.c:385: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). nameLen = (uint32_t)strlen(name); data/fasttracker2-1.24/src/gfxdata/bmp/win32 tools/bin2h.c:215:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dataName, name, sizeof (dataName)-1); data/fasttracker2-1.24/src/gfxdata/bmp/win32 tools/bin2h.c:216: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). dataNameLen = strlen(dataName); data/fasttracker2-1.24/src/gfxdata/bmp/win32 tools/bin2h.c:304:8: [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). l1 = strlen(p1); data/fasttracker2-1.24/src/gfxdata/bmp/win32 tools/bin2h.c:309:8: [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). l1 = strlen(p1); data/fasttracker2-1.24/src/gfxdata/bmp/win32 tools/bin2h.c:321:8: [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). l2 = strlen(p2); data/fasttracker2-1.24/src/gfxdata/bmp/win32 tools/bin2h.c:326:8: [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). l2 = strlen(p2); data/fasttracker2-1.24/src/helpdata/code/ft2hlp_to_h.c:160:28: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fprintf(fOut, "0x%02X", fgetc(fIn)); data/fasttracker2-1.24/src/helpdata/code/ft2hlp_to_h.c:162:29: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fprintf(fOut, "0x%02X,", fgetc(fIn)); data/fasttracker2-1.24/src/rtmidi/RtMidi.cpp:1551:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int res = read( poll_fds[0].fd, &dummy, sizeof(dummy) ); ANALYSIS SUMMARY: Hits = 434 Lines analyzed = 68630 in approximately 2.69 seconds (25472 lines/second) Physical Source Lines of Code (SLOC) = 55682 Hits@level = [0] 152 [1] 104 [2] 272 [3] 6 [4] 52 [5] 0 Hits@level+ = [0+] 586 [1+] 434 [2+] 330 [3+] 58 [4+] 52 [5+] 0 Hits/KSLOC@level+ = [0+] 10.524 [1+] 7.79426 [2+] 5.92651 [3+] 1.04163 [4+] 0.933875 [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.