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/tetraproc-0.8.6/source/kmeter.h Examining data/tetraproc-0.8.6/source/virtmic.h Examining data/tetraproc-0.8.6/source/impdata.cc Examining data/tetraproc-0.8.6/source/tetraproc.cc Examining data/tetraproc-0.8.6/source/textmat.h Examining data/tetraproc-0.8.6/source/abprocess.cc Examining data/tetraproc-0.8.6/source/filewin.cc Examining data/tetraproc-0.8.6/source/filewin.h Examining data/tetraproc-0.8.6/source/dither.cc Examining data/tetraproc-0.8.6/source/jclient.h Examining data/tetraproc-0.8.6/source/jclient.cc Examining data/tetraproc-0.8.6/source/oscform.h Examining data/tetraproc-0.8.6/source/global.h Examining data/tetraproc-0.8.6/source/audiofile.cc Examining data/tetraproc-0.8.6/source/mainwin.cc Examining data/tetraproc-0.8.6/source/convol44.h Examining data/tetraproc-0.8.6/source/hpfilt.h Examining data/tetraproc-0.8.6/source/impdata.h Examining data/tetraproc-0.8.6/source/textmat.cc Examining data/tetraproc-0.8.6/source/kmeter.cc Examining data/tetraproc-0.8.6/source/styles.h Examining data/tetraproc-0.8.6/source/tetrafile.cc Examining data/tetraproc-0.8.6/source/abconfig.h Examining data/tetraproc-0.8.6/source/pmfilt.cc Examining data/tetraproc-0.8.6/source/png2img.h Examining data/tetraproc-0.8.6/source/oscform.cc Examining data/tetraproc-0.8.6/source/audiofile.h Examining data/tetraproc-0.8.6/source/mainwin.h Examining data/tetraproc-0.8.6/source/kmeterdsp.cc Examining data/tetraproc-0.8.6/source/confwin.cc Examining data/tetraproc-0.8.6/source/pmfilt.h Examining data/tetraproc-0.8.6/source/confwin.h Examining data/tetraproc-0.8.6/source/virtmic.cc Examining data/tetraproc-0.8.6/source/abprocess.h Examining data/tetraproc-0.8.6/source/styles.cc Examining data/tetraproc-0.8.6/source/bformat.h Examining data/tetraproc-0.8.6/source/kmeterdsp.h Examining data/tetraproc-0.8.6/source/dither.h Examining data/tetraproc-0.8.6/source/convol44.cc Examining data/tetraproc-0.8.6/source/png2img.cc Examining data/tetraproc-0.8.6/source/abconfig.cc Examining data/tetraproc-0.8.6/source/hpfilt.cc FINAL RESULTS: data/tetraproc-0.8.6/source/abconfig.cc:90: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 (s, file); data/tetraproc-0.8.6/source/abconfig.cc:163: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 (s, file); data/tetraproc-0.8.6/source/abconfig.cc:194:16: [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). if (!err) strcpy (_copyright, q); data/tetraproc-0.8.6/source/abconfig.cc:199:16: [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). if (!err) strcpy (_descript, q); data/tetraproc-0.8.6/source/abconfig.cc:204:16: [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). if (!err) strcpy (_micident, q); data/tetraproc-0.8.6/source/abconfig.cc:225:16: [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). if (!err) strcpy (_convfile, q); data/tetraproc-0.8.6/source/confwin.cc:234: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 (_file, _filewin->file ()); data/tetraproc-0.8.6/source/confwin.cc:251: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 (_file, _filewin->file ()); data/tetraproc-0.8.6/source/confwin.cc:275:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (s, lffmt [j], C->_lffilt [j]); data/tetraproc-0.8.6/source/confwin.cc:294:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (s, pmfmt [j % 3], C->_hffilt [i][j]); data/tetraproc-0.8.6/source/confwin.cc:301:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (s, pmfmt [2], C->_eqgain [j]); data/tetraproc-0.8.6/source/confwin.cc:319: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 (C->_descript, _t_comm->text ()); data/tetraproc-0.8.6/source/confwin.cc:320: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 (C->_micident, _t_mici->text ()); data/tetraproc-0.8.6/source/confwin.cc:335:10: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. if ((sscanf (_t_conv->text (), "%s", C->_convfile) != 1) && (C->_enable & ABconfig::EN_CONV)) data/tetraproc-0.8.6/source/filewin.cc:89:18: [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). if (p && *p) strcpy (_pres, p); data/tetraproc-0.8.6/source/filewin.cc:92:18: [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). if (p && *p) strcpy (_home, p); data/tetraproc-0.8.6/source/filewin.cc:147:32: [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). if (E->state & ShiftMask) strcpy (_pres, _wdir); data/tetraproc-0.8.6/source/filewin.cc:335:5: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf (_tfname->text (), "%s", s); data/tetraproc-0.8.6/source/filewin.cc:355:5: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf (_tfname->text (), "%s", s); data/tetraproc-0.8.6/source/filewin.cc:368:5: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf (_tfname->text (), "%s", s); data/tetraproc-0.8.6/source/mainwin.cc:49:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (s, "TETRAPROC - Tetrahedral Microphone Processor - %s [ %s ]", VERSION, jclient->jname ()); data/tetraproc-0.8.6/source/oscform.cc:57: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 (_pcomm, v); data/tetraproc-0.8.6/source/oscform.cc:74: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 (_pform, v); data/tetraproc-0.8.6/source/oscform.cc:118: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 (_data + _inext, v); data/tetraproc-0.8.6/source/filewin.cc:91:9: [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. p = getenv ("HOME"); data/tetraproc-0.8.6/source/tetrafile.cc:100:17: [3] (buffer) getopt_long: 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 ((k = getopt_long (ac, av, "", options, 0)) != -1) data/tetraproc-0.8.6/source/abconfig.cc:41: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 (_copyright, "(C) 2009 Fons Adriaensen"); data/tetraproc-0.8.6/source/abconfig.cc:42: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 (_descript, "Default configuration"); data/tetraproc-0.8.6/source/abconfig.cc:43: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 (_micident, "Theoretical microphone"); data/tetraproc-0.8.6/source/abconfig.cc:87: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 s [1024]; data/tetraproc-0.8.6/source/abconfig.cc:92:13: [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. if (!p) strcat (s, ".tetra"); data/tetraproc-0.8.6/source/abconfig.cc:93: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 (! (F = fopen (s, "w"))) data/tetraproc-0.8.6/source/abconfig.cc:160: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 s [1024]; data/tetraproc-0.8.6/source/abconfig.cc:165:13: [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. if (!p) strcat (s, ".tetra"); data/tetraproc-0.8.6/source/abconfig.cc:166: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 (! (F = fopen (s, "r"))) data/tetraproc-0.8.6/source/abconfig.h:43: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 _copyright [64]; data/tetraproc-0.8.6/source/abconfig.h:44: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 _descript [64]; data/tetraproc-0.8.6/source/abconfig.h:45: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 _micident [64]; data/tetraproc-0.8.6/source/abconfig.h:52: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 _convfile [1024]; data/tetraproc-0.8.6/source/abprocess.cc:104:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_convol->wr_ptr (0), q [0], n * sizeof (float)); data/tetraproc-0.8.6/source/abprocess.cc:105:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_convol->wr_ptr (1), q [1], n * sizeof (float)); data/tetraproc-0.8.6/source/abprocess.cc:106:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_convol->wr_ptr (2), q [2], n * sizeof (float)); data/tetraproc-0.8.6/source/abprocess.cc:107:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_convol->wr_ptr (3), q [3], n * sizeof (float)); data/tetraproc-0.8.6/source/abprocess.cc:112:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (q [0], _convol->rd_ptr (0), n * sizeof (float)); data/tetraproc-0.8.6/source/abprocess.cc:113:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (q [1], _convol->rd_ptr (1), n * sizeof (float)); data/tetraproc-0.8.6/source/abprocess.cc:114:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (q [2], _convol->rd_ptr (2), n * sizeof (float)); data/tetraproc-0.8.6/source/abprocess.cc:115:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (q [3], _convol->rd_ptr (3), n * sizeof (float)); data/tetraproc-0.8.6/source/abprocess.cc:149: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 (p0, W, k * sizeof (float)); data/tetraproc-0.8.6/source/abprocess.cc:150: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 (p1, X, k * sizeof (float)); data/tetraproc-0.8.6/source/abprocess.cc:151: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 (p2, Y, k * sizeof (float)); data/tetraproc-0.8.6/source/abprocess.cc:152: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 (p3, Z, k * sizeof (float)); data/tetraproc-0.8.6/source/abprocess.cc:251: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 (_matrix, C->_matrix, 16 * sizeof (float)); data/tetraproc-0.8.6/source/confwin.cc:33: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 *lffmt [3] = { "%7.1lf", "%5.3lf", "%5.2lf" }; data/tetraproc-0.8.6/source/confwin.cc:34: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 *pmfmt [3] = { "%7.0lf", "%5.3lf", "%5.2lf" }; data/tetraproc-0.8.6/source/confwin.cc:84:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void Confwin::open (ABconfig *C) data/tetraproc-0.8.6/source/confwin.cc:264: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 s [64]; data/tetraproc-0.8.6/source/confwin.cc:283:13: [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 (s, "%8.4lf", C->_matrix [i][j]); data/tetraproc-0.8.6/source/confwin.h:38:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void open (ABconfig *); data/tetraproc-0.8.6/source/confwin.h:90: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 _file [1024]; data/tetraproc-0.8.6/source/convol44.cc:363:10: [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, _wr_ptr [i], _frag * sizeof (float)); data/tetraproc-0.8.6/source/filewin.cc:331: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 s [64]; data/tetraproc-0.8.6/source/filewin.cc:352: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 s [64]; data/tetraproc-0.8.6/source/filewin.cc:364: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 s [64]; data/tetraproc-0.8.6/source/filewin.h:76:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _fext [64]; data/tetraproc-0.8.6/source/filewin.h:77: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 _cdir [1024]; data/tetraproc-0.8.6/source/filewin.h:78: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 _wdir [1024]; data/tetraproc-0.8.6/source/filewin.h:79: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 _home [1024]; data/tetraproc-0.8.6/source/filewin.h:80:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _pres [1024]; data/tetraproc-0.8.6/source/impdata.cc: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 p [HDRSIZE]; data/tetraproc-0.8.6/source/impdata.cc:140:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((_aldfile = fopen (name, "r")) == 0) return ERR_OPEN; data/tetraproc-0.8.6/source/impdata.cc:205: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 p [HDRSIZE]; data/tetraproc-0.8.6/source/impdata.cc:209:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((_aldfile = fopen (name, "w")) == 0) return ERR_OPEN; data/tetraproc-0.8.6/source/impdata.cc:211: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 (p, "aliki"); data/tetraproc-0.8.6/source/impdata.cc:451:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (name, ".ald"); data/tetraproc-0.8.6/source/impdata.cc:483: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 (_suffix, "%d", chan + 1); data/tetraproc-0.8.6/source/impdata.h:142: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 _suffix [12]; data/tetraproc-0.8.6/source/impdata.h:143: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 *_suffix2 [2]; data/tetraproc-0.8.6/source/impdata.h:144: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 *_suffix3 [2]; data/tetraproc-0.8.6/source/impdata.h:145: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 *_suffix4 [2]; data/tetraproc-0.8.6/source/impdata.h:146: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 *_suffix5 [4]; data/tetraproc-0.8.6/source/impdata.h:147: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 *_suffix7 [4]; data/tetraproc-0.8.6/source/impdata.h:148: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 *_suffix8 [12]; data/tetraproc-0.8.6/source/jclient.h:107: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 *ipp_names [8]; data/tetraproc-0.8.6/source/jclient.h:108: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 *opp_names [10]; data/tetraproc-0.8.6/source/kmeter.cc:183: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 s [1024]; data/tetraproc-0.8.6/source/mainwin.cc: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 *laba [4] = { "LF", "RF", "LB", "RB" }; data/tetraproc-0.8.6/source/mainwin.cc: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 *labb [4] = { "W", "X", "Y", "Z" }; data/tetraproc-0.8.6/source/mainwin.cc:41: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 s [1024]; data/tetraproc-0.8.6/source/mainwin.cc:241:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _confwin->open (C); data/tetraproc-0.8.6/source/mainwin.cc:276:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _confwin->open (C); data/tetraproc-0.8.6/source/png2img.cc:36: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). F = fopen (file, "r"); data/tetraproc-0.8.6/source/abconfig.cc:173:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (Z.read (F) || ((p = Z.get_command ()) == 0) || strcmp (p, "/tetraproc")) data/tetraproc-0.8.6/source/abconfig.cc:187:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (!(err || Z.read (F))) data/tetraproc-0.8.6/source/audiofile.cc:253:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int Audiofile::read (float *data, uint64_t frames) data/tetraproc-0.8.6/source/audiofile.h:109:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read (float *data, uint64_t frames); data/tetraproc-0.8.6/source/filewin.cc:249:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (_fext, fext, 64); data/tetraproc-0.8.6/source/filewin.cc:272: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). if (fext) ke = strlen (fext); data/tetraproc-0.8.6/source/filewin.cc:295: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). kn = strlen (E->d_name); data/tetraproc-0.8.6/source/jclient.h:69:65: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void get_level (int i, float *rms, float *dpk) { _kmdsp [i].read (rms, dpk); } data/tetraproc-0.8.6/source/kmeterdsp.cc:123:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void Kmeterdsp::read (float *rms, float *dpk) data/tetraproc-0.8.6/source/kmeterdsp.h:34:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read (float *rms, float *dpk); data/tetraproc-0.8.6/source/oscform.cc:54: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). k = strlen (v); data/tetraproc-0.8.6/source/oscform.cc:71: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). k = strlen (v); data/tetraproc-0.8.6/source/oscform.cc:116: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). k = strlen (v); data/tetraproc-0.8.6/source/oscform.cc:143:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int Oscform::read (FILE *F) data/tetraproc-0.8.6/source/oscform.h:43:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read (FILE *F); data/tetraproc-0.8.6/source/tetrafile.cc:285:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). k = Ainp1.read (buff, BUFFSIZE); data/tetraproc-0.8.6/source/tetrafile.cc:295:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Ainp2.read (buff, BUFFSIZE); ANALYSIS SUMMARY: Hits = 108 Lines analyzed = 7438 in approximately 0.18 seconds (41978 lines/second) Physical Source Lines of Code (SLOC) = 5483 Hits@level = [0] 55 [1] 17 [2] 65 [3] 2 [4] 24 [5] 0 Hits@level+ = [0+] 163 [1+] 108 [2+] 91 [3+] 26 [4+] 24 [5+] 0 Hits/KSLOC@level+ = [0+] 29.7283 [1+] 19.6972 [2+] 16.5968 [3+] 4.74193 [4+] 4.37717 [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.