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/libmpc-0.1~r495/wavcmp/wavcmp.c Examining data/libmpc-0.1~r495/libmpcdec/mpc_bits_reader.h Examining data/libmpc-0.1~r495/libmpcdec/mpc_bits_reader.c Examining data/libmpc-0.1~r495/libmpcdec/mpc_reader.c Examining data/libmpc-0.1~r495/libmpcdec/mpcdec_math.h Examining data/libmpc-0.1~r495/libmpcdec/huffman.c Examining data/libmpc-0.1~r495/libmpcdec/internal.h Examining data/libmpc-0.1~r495/libmpcdec/mpc_demux.c Examining data/libmpc-0.1~r495/libmpcdec/mpc_decoder.c Examining data/libmpc-0.1~r495/libmpcdec/requant.h Examining data/libmpc-0.1~r495/libmpcdec/decoder.h Examining data/libmpc-0.1~r495/libmpcdec/streaminfo.c Examining data/libmpc-0.1~r495/libmpcdec/requant.c Examining data/libmpc-0.1~r495/libmpcdec/huffman.h Examining data/libmpc-0.1~r495/libmpcdec/synth_filter.c Examining data/libmpc-0.1~r495/mpcchap/dictionary.h Examining data/libmpc-0.1~r495/mpcchap/dictionary.c Examining data/libmpc-0.1~r495/mpcchap/iniparser.c Examining data/libmpc-0.1~r495/mpcchap/iniparser.h Examining data/libmpc-0.1~r495/mpcchap/mpcchap.c Examining data/libmpc-0.1~r495/mpccut/mpccut.c Examining data/libmpc-0.1~r495/mpcenc/keyboard.c Examining data/libmpc-0.1~r495/mpcenc/config.h Examining data/libmpc-0.1~r495/mpcenc/mpcenc.c Examining data/libmpc-0.1~r495/mpcenc/mpcenc.h Examining data/libmpc-0.1~r495/mpcenc/winmsg.c Examining data/libmpc-0.1~r495/mpcenc/stderr.c Examining data/libmpc-0.1~r495/mpcenc/predict.h Examining data/libmpc-0.1~r495/mpcenc/wave_in.c Examining data/libmpc-0.1~r495/mpcenc/pipeopen.c Examining data/libmpc-0.1~r495/mpcdec/mpcdec.c Examining data/libmpc-0.1~r495/mpc2sv8/mpc2sv8.c Examining data/libmpc-0.1~r495/libmpcenc/libmpcenc.h Examining data/libmpc-0.1~r495/libmpcenc/huffsv7.c Examining data/libmpc-0.1~r495/libmpcenc/bitstream.c Examining data/libmpc-0.1~r495/libmpcenc/analy_filter.c Examining data/libmpc-0.1~r495/libmpcenc/quant.c Examining data/libmpc-0.1~r495/libmpcenc/encode_sv7.c Examining data/libmpc-0.1~r495/include/mpc/mpcdec.h Examining data/libmpc-0.1~r495/include/mpc/minimax.h Examining data/libmpc-0.1~r495/include/mpc/mpcmath.h Examining data/libmpc-0.1~r495/include/mpc/streaminfo.h Examining data/libmpc-0.1~r495/include/mpc/reader.h Examining data/libmpc-0.1~r495/include/mpc/mpc_types.h Examining data/libmpc-0.1~r495/include/mpc/datatypes.h Examining data/libmpc-0.1~r495/libmpcpsy/fft4g.c Examining data/libmpc-0.1~r495/libmpcpsy/profile.c Examining data/libmpc-0.1~r495/libmpcpsy/ans.c Examining data/libmpc-0.1~r495/libmpcpsy/psy_tab.c Examining data/libmpc-0.1~r495/libmpcpsy/psy.c Examining data/libmpc-0.1~r495/libmpcpsy/fft_routines.c Examining data/libmpc-0.1~r495/libmpcpsy/libmpcpsy.h Examining data/libmpc-0.1~r495/libmpcpsy/cvd.c Examining data/libmpc-0.1~r495/win32/dirent.h Examining data/libmpc-0.1~r495/win32/libgen.h Examining data/libmpc-0.1~r495/win32/basename.c Examining data/libmpc-0.1~r495/win32/getopt.h Examining data/libmpc-0.1~r495/win32/dirent.c Examining data/libmpc-0.1~r495/win32/attgetopt.c Examining data/libmpc-0.1~r495/mpcgain/mpcgain.c Examining data/libmpc-0.1~r495/common/tags.c Examining data/libmpc-0.1~r495/common/huffman-bcl.c Examining data/libmpc-0.1~r495/common/fastmath.c Examining data/libmpc-0.1~r495/common/crc32.c Examining data/libmpc-0.1~r495/libwavformat/output.c Examining data/libmpc-0.1~r495/libwavformat/input.c Examining data/libmpc-0.1~r495/libwavformat/libwaveformat.h FINAL RESULTS: data/libmpc-0.1~r495/common/tags.c:1044: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 ( (char*)key, (char*)p ); p += strlen ((char*)key) + 1; data/libmpc-0.1~r495/libmpcdec/streaminfo.c:95:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(si->encoder, "%s %u.%u.%u", tmp, major, minor, build); data/libmpc-0.1~r495/mpc2sv8/mpc2sv8.c:236:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(About); data/libmpc-0.1~r495/mpc2sv8/mpc2sv8.c:262:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(out_file, "%s/%s", argv[argc - 1], file_name); data/libmpc-0.1~r495/mpcchap/dictionary.c:69:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(t,s); data/libmpc-0.1~r495/mpcchap/iniparser.c:90: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(l, s); data/libmpc-0.1~r495/mpcchap/iniparser.c:314:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(keym, "%s:", secname); data/libmpc-0.1~r495/mpcchap/iniparser.c:542: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(line, strstrip(input_line)); data/libmpc-0.1~r495/mpcchap/iniparser.c:555:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(section, strstrip(section)); data/libmpc-0.1~r495/mpcchap/iniparser.c:556:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(section, section); data/libmpc-0.1~r495/mpcchap/iniparser.c:562:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(key, strstrip(key)); data/libmpc-0.1~r495/mpcchap/iniparser.c:563:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(key, key); data/libmpc-0.1~r495/mpcchap/iniparser.c:564:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(value, strstrip(value)); data/libmpc-0.1~r495/mpcchap/iniparser.c:581:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(key, strstrip(key)); data/libmpc-0.1~r495/mpcchap/iniparser.c:582:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(key, key); data/libmpc-0.1~r495/mpcchap/iniparser.c:677:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "%s:%s", section, key); data/libmpc-0.1~r495/mpcchap/mpcchap.c:303:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, About, argv[0]); data/libmpc-0.1~r495/mpccut/mpccut.c:93:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(About); data/libmpc-0.1~r495/mpcdec/mpcdec.c:177:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, About); data/libmpc-0.1~r495/mpcenc/mpcenc.c:843:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy ( *OutputFile = output, *InputFile ); data/libmpc-0.1~r495/mpcenc/mpcenc.h:82:10: [4] (format) snprintf: 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. # define snprintf _snprintf data/libmpc-0.1~r495/mpcenc/mpcenc.h:82:37: [4] (format) _snprintf: 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. # define snprintf _snprintf data/libmpc-0.1~r495/mpcenc/mpcenc.h:145:41: [4] (shell) popen: 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. # define POPEN_READ_BINARY_OPEN(cmd) popen ((cmd), "r") data/libmpc-0.1~r495/mpcenc/pipeopen.c:40:15: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. ret = sprintf ( escaped, "\"%s\"", longprogname ); // Note that this only helps against spaces and some similar things in the file name, not against all strange stuff data/libmpc-0.1~r495/mpcenc/pipeopen.c:69: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, executable_filename ); data/libmpc-0.1~r495/mpcenc/pipeopen.c:77:9: [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 ( cmdline, command_line ); data/libmpc-0.1~r495/mpcenc/pipeopen.c:148: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, EXE_EXT ); data/libmpc-0.1~r495/mpcenc/stderr.c:61:11: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. ret = vsprintf ( p, format, v ); data/libmpc-0.1~r495/mpcenc/winmsg.c:56:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf ( startup, "#START#MP+ v%s SV%i", Version, SV); // fill startup-message data/libmpc-0.1~r495/mpcgain/mpcgain.c:153:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(About); data/libmpc-0.1~r495/win32/dirent.c:121:11: [4] (buffer) lstrcpyA: 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). (void)lstrcpyA(search_spec, name); data/libmpc-0.1~r495/win32/dirent.c:125:15: [4] (buffer) lstrcatA: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). (void)lstrcatA(search_spec, "\\*.*"); data/libmpc-0.1~r495/win32/dirent.c:129:15: [4] (buffer) lstrcatA: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). (void)lstrcatA(search_spec, "*.*"); data/libmpc-0.1~r495/win32/dirent.c:143:5: [4] (buffer) lstrcpyW: 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). lstrcpyW(search_spec, name); data/libmpc-0.1~r495/win32/dirent.c:147:9: [4] (buffer) lstrcatW: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). lstrcatW(search_spec, L"\\*.*"); data/libmpc-0.1~r495/win32/dirent.c:151:9: [4] (buffer) lstrcatW: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). lstrcatW(search_spec, L"*.*"); data/libmpc-0.1~r495/win32/dirent.c:200:23: [4] (buffer) lstrcpyA: 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). (void)lstrcpyA(result->directory, name); data/libmpc-0.1~r495/win32/dirent.c:201:23: [4] (buffer) lstrcpyA: 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). (void)lstrcpyA(result->dirent.d_name, result->find_data.cFileName); data/libmpc-0.1~r495/win32/dirent.c:258:15: [4] (buffer) lstrcpyA: 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). (void)lstrcpyA(dir->dirent.d_name, dir->find_data.cFileName); data/libmpc-0.1~r495/win32/dirent.c:283:15: [4] (buffer) lstrcpyA: 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). (void)lstrcpyA(dir->dirent.d_name, dir->find_data.cFileName); data/libmpc-0.1~r495/mpc2sv8/mpc2sv8.c:238:14: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc , argv, "oh")) != -1) { data/libmpc-0.1~r495/mpccut/mpccut.c:95:14: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc , argv, "s:e:")) != -1) { data/libmpc-0.1~r495/mpcdec/mpcdec.c:179:14: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc , argv, "ihcre")) != -1) { data/libmpc-0.1~r495/mpcenc/pipeopen.c:185:26: [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. fp = TracePathList ( getenv ("PATH"), executable_filename, command_line ); data/libmpc-0.1~r495/win32/attgetopt.c:25:5: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. int getopt(int argc, char **argv, char *opts) data/libmpc-0.1~r495/win32/getopt.h:14:5: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. int getopt(int argc, char **argv, char *opts); data/libmpc-0.1~r495/common/tags.c:562: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 ( dst, T[i].value, valuelen ); data/libmpc-0.1~r495/common/tags.c:739: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, key, keylen ); data/libmpc-0.1~r495/common/tags.c:848:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char H [32] = "APETAGEX"; data/libmpc-0.1~r495/common/tags.c:849:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char dw [8]; data/libmpc-0.1~r495/common/tags.c:991: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 ( (char*)tmp, "%u", tmp[126] ); data/libmpc-0.1~r495/common/tags.c:1015:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buff [32768]; data/libmpc-0.1~r495/common/tags.c:1016:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char key [257]; data/libmpc-0.1~r495/common/tags.c:1123:10: [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). fp = fopen ( filename, "rb" ); data/libmpc-0.1~r495/include/mpc/streaminfo.h:86:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char encoder[256]; ///< Encoder name data/libmpc-0.1~r495/libmpcdec/internal.h:55: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 key[2]; // block key data/libmpc-0.1~r495/libmpcdec/mpc_demux.c:413: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(tmp_ptag, tmp_buff, rd_size); data/libmpc-0.1~r495/libmpcdec/mpc_demux.c:469: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 magic[4]; data/libmpc-0.1~r495/libmpcdec/mpc_demux.c:566: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(i, &d->si, sizeof d->si); data/libmpc-0.1~r495/libmpcdec/mpc_reader.c:130:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE * stream = fopen(filename, "rb"); data/libmpc-0.1~r495/libmpcdec/streaminfo.c:69: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(si->encoder, "Buschmann 1.7.0...9, Klemm 0.90...1.05"); data/libmpc-0.1~r495/libmpcdec/streaminfo.c:73:6: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(si->encoder, "Release %u.%u", ver / 100, data/libmpc-0.1~r495/libmpcdec/streaminfo.c:77:6: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(si->encoder, "Beta %u.%02u", ver / 100, data/libmpc-0.1~r495/libmpcdec/streaminfo.c:81:6: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(si->encoder, "--Alpha-- %u.%02u", data/libmpc-0.1~r495/libmpcenc/analy_filter.c:253: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 ( X_L + X_MEM, X_L, 480*sizeof(*X_L) ); data/libmpc-0.1~r495/libmpcenc/analy_filter.c:272: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 ( X_R + X_MEM, X_R, 480*sizeof(*X_R) ); data/libmpc-0.1~r495/libmpcenc/analy_filter.c:306: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 ( X_L + X_MEM, X_L, 480*sizeof(*X_L) ); data/libmpc-0.1~r495/libmpcenc/analy_filter.c:325: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 ( X_R + X_MEM, X_R, 480*sizeof(*X_R) ); data/libmpc-0.1~r495/libmpcenc/bitstream.c:185: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 blockSize[10]; data/libmpc-0.1~r495/libmpcenc/bitstream.c:207:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[4]; data/libmpc-0.1~r495/libmpcenc/encode_sv7.c:109:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char tmp[10]; data/libmpc-0.1~r495/libmpcpsy/ans.c:142:23: [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 unsigned char maxANSOrder [32] = { data/libmpc-0.1~r495/libmpcpsy/ans.c:264:21: [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 ( fir [Band], h, order * sizeof(*h) ); data/libmpc-0.1~r495/libmpcpsy/fft_routines.c:58: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 (A, aix, 20*sizeof(aix)); \ data/libmpc-0.1~r495/libmpcpsy/psy.c:1047: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 ( sim_Mask_L, tmp_Mask_L, sizeof sim_Mask_L ); data/libmpc-0.1~r495/libmpcpsy/psy.c:1048: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 ( sim_Mask_R, tmp_Mask_R, sizeof sim_Mask_R ); data/libmpc-0.1~r495/libmpcpsy/psy.c:1108: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 ( ANSspec_L, Thr_L, sizeof ANSspec_L ); data/libmpc-0.1~r495/libmpcpsy/psy.c:1109: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 ( ANSspec_R, Thr_R, sizeof ANSspec_R ); data/libmpc-0.1~r495/libmpcpsy/psy.c:1110: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 ( ANSspec_M, Thr_M, sizeof ANSspec_M ); data/libmpc-0.1~r495/libmpcpsy/psy.c:1111: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 ( ANSspec_S, Thr_S, sizeof ANSspec_S ); data/libmpc-0.1~r495/libmpcpsy/psy.c:1180: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 ( sim_Mask_L, tmp_Mask_L, sizeof sim_Mask_L ); data/libmpc-0.1~r495/libmpcpsy/psy.c:1181: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 ( sim_Mask_R, tmp_Mask_R, sizeof sim_Mask_R ); data/libmpc-0.1~r495/libmpcpsy/psy_tab.c:237:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char lfe [11] = { 120, 100, 80, 60, 50, 40, 30, 20, 15, 10, 5 }; data/libmpc-0.1~r495/mpc2sv8/mpc2sv8.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 buf[TMP_BUF_SIZE]; data/libmpc-0.1~r495/mpc2sv8/mpc2sv8.c:125:17: [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). e.outputFile = fopen( sv8file, "w+b" ); data/libmpc-0.1~r495/mpc2sv8/mpc2sv8.c:129:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). in_file = fopen(sv7file, "rb"); data/libmpc-0.1~r495/mpc2sv8/mpc2sv8.c:265:23: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE * test_file = fopen( out_file, "rb" ); data/libmpc-0.1~r495/mpcchap/dictionary.c:47: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(newptr, ptr, size); data/libmpc-0.1~r495/mpcchap/dictionary.c:367: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 cval[90] ; data/libmpc-0.1~r495/mpcchap/dictionary.c:376: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(cval, "%04d", i); data/libmpc-0.1~r495/mpcchap/dictionary.c:381: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(cval, "%04d", i); data/libmpc-0.1~r495/mpcchap/dictionary.c:389: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(cval, "%04d", i); data/libmpc-0.1~r495/mpcchap/iniparser.c:53:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char l[ASCIILINESZ+1]; data/libmpc-0.1~r495/mpcchap/iniparser.c:83:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char l[ASCIILINESZ+1]; data/libmpc-0.1~r495/mpcchap/iniparser.c:293:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char keym[ASCIILINESZ+1]; data/libmpc-0.1~r495/mpcchap/iniparser.c:539:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[ASCIILINESZ+1]; data/libmpc-0.1~r495/mpcchap/iniparser.c:610:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line [ASCIILINESZ+1] ; data/libmpc-0.1~r495/mpcchap/iniparser.c:611:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char section [ASCIILINESZ+1] ; data/libmpc-0.1~r495/mpcchap/iniparser.c:612:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key [ASCIILINESZ+1] ; data/libmpc-0.1~r495/mpcchap/iniparser.c:613:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp [ASCIILINESZ+1] ; data/libmpc-0.1~r495/mpcchap/iniparser.c:614:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char val [ASCIILINESZ+1] ; data/libmpc-0.1~r495/mpcchap/iniparser.c:623:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((in=fopen(ininame, "r"))==NULL) { data/libmpc-0.1~r495/mpcchap/mpcchap.c:95:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). in_file = fopen( mpc_file, "r+b" ); data/libmpc-0.1~r495/mpcchap/mpcchap.c:124:12: [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). gain = atoi(item_value); data/libmpc-0.1~r495/mpcchap/mpcchap.c:126:12: [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). peak = atoi(item_value); data/libmpc-0.1~r495/mpcchap/mpcchap.c:171:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). in_file = fopen(chap_file, "r"); data/libmpc-0.1~r495/mpcchap/mpcchap.c:190:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). in_file = fopen( mpc_file, "r+b" ); data/libmpc-0.1~r495/mpcchap/mpcchap.c:200: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 track_buf[16], block_header[12] = "CT", sample_offset[10]; data/libmpc-0.1~r495/mpcchap/mpcchap.c:218: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(track_buf, "%i/%i", i, nchap); data/libmpc-0.1~r495/mpcchap/mpcchap.c:266:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). out_file = fopen(chap_file, "wb"); data/libmpc-0.1~r495/mpcchap/mpcchap.c:325:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). test_file = fopen(chap_file, "rb" ); data/libmpc-0.1~r495/mpccut/mpccut.c:60: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 * buff[512]; data/libmpc-0.1~r495/mpccut/mpccut.c:83:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buffer[16]; data/libmpc-0.1~r495/mpccut/mpccut.c:142:17: [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). e.outputFile = fopen( argv[optind + 1], "rb" ); data/libmpc-0.1~r495/mpccut/mpccut.c:147:17: [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). e.outputFile = fopen( argv[optind + 1], "w+b" ); data/libmpc-0.1~r495/mpccut/mpccut.c:158:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). in_file = fopen(argv[optind], "rb"); data/libmpc-0.1~r495/mpcdec/mpcdec.c:238:26: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). wavo_fc.m_user_data = fopen(argv[optind + 1], "wb"); data/libmpc-0.1~r495/mpcenc/keyboard.c:90:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buff [1]; data/libmpc-0.1~r495/mpcenc/mpcenc.c:115:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buff [1]; data/libmpc-0.1~r495/mpcenc/mpcenc.c:449:23: [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 unsigned char Penalty [256] = { data/libmpc-0.1~r495/mpcenc/mpcenc.c:692:17: [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 ( errorL [Band], errorL[Band] + 36, MAX_NS_ORDER * sizeof (**errorL) ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:695:17: [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 ( errorL [Band], errorL[Band] + 36, MAX_NS_ORDER * sizeof (**errorL) ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:702:17: [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 ( errorR [Band], errorR [Band] + 36, MAX_NS_ORDER * sizeof (**errorL) ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:705:17: [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 ( errorR [Band], errorR [Band] + 36, MAX_NS_ORDER * sizeof (**errorL) ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:783:17: [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 ( save, x, sizeof save ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:795:21: [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 ( x, save, sizeof save ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:815:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char output [2048]; data/libmpc-0.1~r495/mpcenc/mpcenc.c:819:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff [32768]; data/libmpc-0.1~r495/mpcenc/mpcenc.c:847:9: [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 (output+len, ".mpc"); data/libmpc-0.1~r495/mpcenc/mpcenc.c:954: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). m->NS_Order = atoi (argv[k]); data/libmpc-0.1~r495/mpcenc/mpcenc.c:959:31: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). PredictionBands = atoi (argv[k]); data/libmpc-0.1~r495/mpcenc/mpcenc.c:972:31: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). m->MinValChoice = atoi (argv[k]); data/libmpc-0.1~r495/mpcenc/mpcenc.c:995: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). m->CVD_used = atoi (argv[k]); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1001:33: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). m->MS_Channelmode = atoi (argv[k]); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1011:31: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). m->tmpMask_used = atoi (argv[k]); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1030:31: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). m->EarModelFlag = atoi (argv[k]); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1037:33: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). m->CombPenalities = atoi (argv[k]); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1056:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). FramesBlockPwr = atoi (argv[k]) * 2; data/libmpc-0.1~r495/mpcenc/mpcenc.c:1060:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). SeekDistance = atoi (argv[k]); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1071:33: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). DisplayUpdateTime = atoi (argv[k]); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1219:22: [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). fp = fopen ( p+1, "rb" ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1246:18: [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 th [ 7] [4] = { "no", "1st", "2nd", "3rd", "4th", "5th", "6th" }; data/libmpc-0.1~r495/mpcenc/mpcenc.c:1247:18: [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 able [ 3] [9] = { "Disabled", "Enabled", "Dual" }; data/libmpc-0.1~r495/mpcenc/mpcenc.c:1325:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char ret [32]; data/libmpc-0.1~r495/mpcenc/mpcenc.c:1336:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf ( ret, "%c%2u:%02u", sign, hour, min ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1338:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf ( ret, " %c%1u:%02u", sign, hour, min ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1340:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf ( ret, " %c%2u", sign, min ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1342:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf ( ret, " %c%1u", sign, min ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1344: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 ( ret + 6, ":%02u.%02u", sec, csec ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1472:16: [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). OutputFile = fopen (DEV_NULL, "wb"); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1481:18: [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). OutputFile = fopen ( OutputName, "rb" ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1487:18: [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). OutputFile = fopen ( OutputName, "w+b" ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1490:18: [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). OutputFile = fopen ( OutputName, "w+b" ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1493:18: [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). OutputFile = fopen ( OutputName, "rb" ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1505:18: [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). OutputFile = fopen ( OutputName, "w+b" ); data/libmpc-0.1~r495/mpcenc/pipeopen.c:60:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char filename [4096]; data/libmpc-0.1~r495/mpcenc/pipeopen.c:61:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdline [4096]; data/libmpc-0.1~r495/mpcenc/pipeopen.c:73:10: [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). fp = fopen ( filename, "rb" ); data/libmpc-0.1~r495/mpcenc/pipeopen.c:131:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char command_line [4096]; // -o - bar.pac data/libmpc-0.1~r495/mpcenc/pipeopen.c:132:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char executable_filename [4096]; // foo.exe data/libmpc-0.1~r495/mpcenc/pipeopen.c:138:16: [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 ( (fp = fopen (filename, "rb")) == NULL ) { data/libmpc-0.1~r495/mpcenc/stderr.c:54:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff [2 * 1024 + 3072]; data/libmpc-0.1~r495/mpcenc/stderr.c:78:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff [128], *q; data/libmpc-0.1~r495/mpcenc/stderr.c:156:56: [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. WriteFile ( hSTDERR, buff, sprintf ( buff, "Unknown escape sequence ending with '%c'\n", *p ), &written, NULL ); data/libmpc-0.1~r495/mpcenc/wave_in.c:52:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen ( filename, "rb" ); data/libmpc-0.1~r495/mpcenc/wave_in.c:61:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen ( filename, "rb" ); data/libmpc-0.1~r495/mpcenc/wave_in.c:303:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buff [2]; data/libmpc-0.1~r495/mpcenc/wave_in.c:313:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buff [4]; data/libmpc-0.1~r495/mpcenc/wave_in.c:478: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 ( DataPtr, data [NextInputIndex], Bytes ); data/libmpc-0.1~r495/mpcenc/wave_in.c:558: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 ( array [i].data, DataPtr, Bytes ); data/libmpc-0.1~r495/mpcenc/winmsg.c:54:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char startup [120]; data/libmpc-0.1~r495/mpcenc/winmsg.c:71:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message [32]; data/libmpc-0.1~r495/mpcenc/winmsg.c:73: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 ( message, "#PARAM#%d#", Profile-8 ); // fill message data/libmpc-0.1~r495/mpcenc/winmsg.c:83:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message [64]; data/libmpc-0.1~r495/mpcenc/winmsg.c:85: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 ( message, "#STAT#%4ik %5.2fx %5.1f%%#", bitrate, speed, percent ); data/libmpc-0.1~r495/mpcgain/mpcgain.c:101:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buffer[MAX_HEAD_SIZE]; data/libmpc-0.1~r495/mpcgain/mpcgain.c:110: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). file = fopen( file_name, "r+b"); data/libmpc-0.1~r495/mpcgain/mpcgain.c:251:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buffer[64]; data/libmpc-0.1~r495/mpcgain/mpcgain.c:257:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file = fopen( argv[j + 1], "r+b"); data/libmpc-0.1~r495/wavcmp/wavcmp.c:58:24: [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). wavi_fc.m_user_data = fopen(argv[1], "rb"); data/libmpc-0.1~r495/wavcmp/wavcmp.c:64:24: [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). wavi_fc.m_user_data = fopen(argv[2], "rb"); data/libmpc-0.1~r495/wavcmp/wavcmp.c:92:25: [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). wavo_fc.m_user_data = fopen(argv[3], "wb"); data/libmpc-0.1~r495/win32/dirent.c:96:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char directory[_MAX_DIR + 1]; /* . */ data/libmpc-0.1~r495/win32/dirent.c:104:5: [2] (buffer) wchar_t: 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. wchar_t directory[_MAX_DIR + 1]; /* . */ data/libmpc-0.1~r495/win32/dirent.c:116:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char search_spec[_MAX_PATH +1]; data/libmpc-0.1~r495/win32/dirent.c:138:5: [2] (buffer) wchar_t: 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. wchar_t search_spec[_MAX_PATH +1]; data/libmpc-0.1~r495/win32/dirent.h:100:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char d_name[NAME_MAX + 1]; /*!< file name (null-terminated) */ data/libmpc-0.1~r495/win32/dirent.h:108:5: [2] (buffer) wchar_t: 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. wchar_t d_name[NAME_MAX + 1]; /*!< file name (null-terminated) */ data/libmpc-0.1~r495/common/tags.c:556: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). size_t keylen = strlen (key); data/libmpc-0.1~r495/common/tags.c:736:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). keylen = strlen ( key ); data/libmpc-0.1~r495/common/tags.c:933:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). keylen = strlen ( key ); data/libmpc-0.1~r495/common/tags.c:987:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addtag ("Genre", 0, GenreList [tmp[127]], strlen (GenreList [tmp[127]]), 0, 0 ); data/libmpc-0.1~r495/common/tags.c:992: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). addtag ("Track", 0, (char*)tmp, strlen ((char*)tmp), 0, 0 ); data/libmpc-0.1~r495/common/tags.c:1044:59: [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). strcpy ( (char*)key, (char*)p ); p += strlen ((char*)key) + 1; data/libmpc-0.1~r495/include/mpc/reader.h:57:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). mpc_int32_t (*read)(mpc_reader *p_reader, void *ptr, mpc_int32_t size); data/libmpc-0.1~r495/libmpcdec/mpc_demux.c:116:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytesread = d->r->read(d->r, d->buffer + d->bytes_total, bytes2read); data/libmpc-0.1~r495/mpc2sv8/mpc2sv8.c:261: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). out_file = malloc(strlen(file_name) + strlen(argv[argc - 1]) + 2); data/libmpc-0.1~r495/mpc2sv8/mpc2sv8.c:261:42: [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). out_file = malloc(strlen(file_name) + strlen(argv[argc - 1]) + 2); data/libmpc-0.1~r495/mpcchap/dictionary.c:67: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). t = malloc(strlen(s)+1) ; data/libmpc-0.1~r495/mpcchap/dictionary.c:95: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). len = strlen(key); data/libmpc-0.1~r495/mpcchap/iniparser.c:91:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). last = l + strlen(l); data/libmpc-0.1~r495/mpcchap/iniparser.c:235: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). keylen = strlen(d->key[i]) + 1; data/libmpc-0.1~r495/mpcchap/iniparser.c:312: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). seclen = (int)strlen(secname); data/libmpc-0.1~r495/mpcchap/iniparser.c:543: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). len = (int)strlen(line); data/libmpc-0.1~r495/mpcchap/iniparser.c:642: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). len = (int)strlen(line)-1; data/libmpc-0.1~r495/mpcchap/mpcchap.c:128: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). key_len = strlen(item_key); data/libmpc-0.1~r495/mpcchap/mpcchap.c:129: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). item_len = strlen(item_value); data/libmpc-0.1~r495/mpcchap/mpcchap.c:220:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). item_len = strlen(track_buf); data/libmpc-0.1~r495/mpcchap/mpcchap.c:229: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). key_len = strlen(item_key); data/libmpc-0.1~r495/mpcchap/mpcchap.c:230: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). item_len = strlen(item_value); data/libmpc-0.1~r495/mpcchap/mpcchap.c:279:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int key_len = strlen(tag + 8); data/libmpc-0.1~r495/mpcchap/mpcchap.c:331:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(chap_file); data/libmpc-0.1~r495/mpcenc/keyboard.c:94:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read ( 0, buff, 1 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:827:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (argv[argc-1]); data/libmpc-0.1~r495/mpcenc/mpcenc.c:844:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen ( output ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1076: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). addtag ( "Artist", 0, p, strlen(p), NoUnicode, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1081:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addtag ( "Album", 0, p, strlen(p), NoUnicode, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1086:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addtag ( "Debut Album", 0, p, strlen(p), NoUnicode, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1091:41: [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). addtag ( "Publisher", 0, p, strlen(p), NoUnicode, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1096:41: [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). addtag ( "Conductor", 0, p, strlen(p), NoUnicode, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1101:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addtag ( "Title", 0, p, strlen(p), NoUnicode, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1106:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addtag ( "Subtitle", 0, p, strlen(p), NoUnicode, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1111:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addtag ( "Track", 0, p, strlen(p), NoUnicode, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1116:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addtag ( "Comment", 0, p, strlen(p), NoUnicode, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1121:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addtag ( "Composer", 0, p, strlen(p), NoUnicode, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1126:41: [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). addtag ( "Copyright", 0, p, strlen(p), NoUnicode, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1131:48: [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). addtag ( "Publicationright", 0, p, strlen(p), NoUnicode, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1136: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). addtag ( "File", 0, p, strlen(p), NoUnicode, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1141: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). addtag ( "Record Location", 0, p, strlen(p), NoUnicode, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1146:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addtag ( "Record Date", 0, p, strlen(p), NoUnicode, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1151:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addtag ( "EAN/UPC", 0, p, strlen(p), NoUnicode, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1156: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). addtag ( "Year", 0, p, strlen(p), NoUnicode, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1161:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addtag ( "Genre", 0, p, strlen(p), NoUnicode, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1166:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addtag ( "Media", 0, p, strlen(p), NoUnicode, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1171:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addtag ( "Index", 0, p, strlen(p), NoUnicode*3, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1176: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). addtag ( "ISRC", 0, p, strlen(p), NoUnicode, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1181:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addtag ( "Abstract", 0, p, strlen(p), NoUnicode, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1186:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addtag ( "Bibliography", 0, p, strlen(p), NoUnicode, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1191:41: [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). addtag ( "Introplay", 0, p, strlen(p), NoUnicode*3, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1196:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addtag ( "Media", 0, p, strlen(p), NoUnicode, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1202: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). addtag ( argv[k], strlen(argv[k]), "", 0, NoUnicode, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1204:51: [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). addtag ( argv[k], p-argv[k], p+1, strlen(p+1), NoUnicode, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1212: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). len = strlen (buff); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1215: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). addtag ( arg, strlen(arg), buff, len, NoUnicode*6, 0 ); data/libmpc-0.1~r495/mpcenc/mpcenc.c:1618:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). signed long read; data/libmpc-0.1~r495/mpcenc/mpcenc.c:1622:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ( read <= 0 ) data/libmpc-0.1~r495/mpcenc/mpcenc.c:1624:30: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SkipSamples -= read; data/libmpc-0.1~r495/mpcenc/mpcenc.c:1625:30: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SamplesInWAVE -= read; data/libmpc-0.1~r495/mpcenc/pipeopen.c:39:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( strlen (longprogname) <= len-3 ) data/libmpc-0.1~r495/mpcenc/stderr.c:100:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). WRITE ( stderr, p, strlen (p) ); data/libmpc-0.1~r495/mpcenc/stderr.c:176: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). WRITE ( stderr, p, strlen (p) ); data/libmpc-0.1~r495/mpcenc/winmsg.c:44: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). MsgData.cbData = strlen(s) + 1; ANALYSIS SUMMARY: Hits = 252 Lines analyzed = 19223 in approximately 0.79 seconds (24315 lines/second) Physical Source Lines of Code (SLOC) = 13302 Hits@level = [0] 187 [1] 64 [2] 142 [3] 6 [4] 40 [5] 0 Hits@level+ = [0+] 439 [1+] 252 [2+] 188 [3+] 46 [4+] 40 [5+] 0 Hits/KSLOC@level+ = [0+] 33.0026 [1+] 18.9445 [2+] 14.1332 [3+] 3.45813 [4+] 3.00707 [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.