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/jkmeter-0.8.0/source/kmeter.h Examining data/jkmeter-0.8.0/source/cmeter.h Examining data/jkmeter-0.8.0/source/jclient.h Examining data/jkmeter-0.8.0/source/jclient.cc Examining data/jkmeter-0.8.0/source/global.h Examining data/jkmeter-0.8.0/source/mainwin.cc Examining data/jkmeter-0.8.0/source/kmeter.cc Examining data/jkmeter-0.8.0/source/styles.h Examining data/jkmeter-0.8.0/source/stcorrdsp.h Examining data/jkmeter-0.8.0/source/stcorrdsp.cc Examining data/jkmeter-0.8.0/source/jkmeter.cc Examining data/jkmeter-0.8.0/source/png2img.h Examining data/jkmeter-0.8.0/source/mainwin.h Examining data/jkmeter-0.8.0/source/kmeterdsp.cc Examining data/jkmeter-0.8.0/source/cmeter.cc Examining data/jkmeter-0.8.0/source/styles.cc Examining data/jkmeter-0.8.0/source/kmeterdsp.h Examining data/jkmeter-0.8.0/source/png2img.cc FINAL RESULTS: data/jkmeter-0.8.0/source/mainwin.cc:156:2: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (s, (p < -9.9f) ? "%3.0lf" : "%3.1lf", p); data/jkmeter-0.8.0/source/mainwin.cc:290:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (s, "%s %s-%s", _jclient->jname (), PROGNAME, VERSION); data/jkmeter-0.8.0/source/cmeter.cc: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 s [1024]; data/jkmeter-0.8.0/source/jclient.cc:50: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 t [16]; data/jkmeter-0.8.0/source/jclient.cc:75:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (t, "in-%d", i + 1); data/jkmeter-0.8.0/source/kmeter.cc:250: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/jkmeter-0.8.0/source/mainwin.cc:48:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). r = atoi (p); data/jkmeter-0.8.0/source/mainwin.cc:150: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 [16]; data/jkmeter-0.8.0/source/mainwin.cc:221: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/jkmeter-0.8.0/source/png2img.cc:38: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/jkmeter-0.8.0/source/kmeterdsp.cc:118: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/jkmeter-0.8.0/source/kmeterdsp.h:33: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/jkmeter-0.8.0/source/mainwin.cc:110:54: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (_corr) _cmeter->update (_jclient->scdsp ()-> read ()); data/jkmeter-0.8.0/source/mainwin.cc:141:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _jclient->kmdsp (k)->read (&r, &p); data/jkmeter-0.8.0/source/stcorrdsp.cc:76:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). float Stcorrdsp::read (void) data/jkmeter-0.8.0/source/stcorrdsp.h:33:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). float read (void); ANALYSIS SUMMARY: Hits = 16 Lines analyzed = 1942 in approximately 0.07 seconds (26812 lines/second) Physical Source Lines of Code (SLOC) = 1247 Hits@level = [0] 30 [1] 6 [2] 8 [3] 0 [4] 2 [5] 0 Hits@level+ = [0+] 46 [1+] 16 [2+] 10 [3+] 2 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 36.8885 [1+] 12.8308 [2+] 8.01925 [3+] 1.60385 [4+] 1.60385 [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.