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/zita-bls1-0.3.3/source/lfshelf2.cc Examining data/zita-bls1-0.3.3/source/jclient.h Examining data/zita-bls1-0.3.3/source/jclient.cc Examining data/zita-bls1-0.3.3/source/global.h Examining data/zita-bls1-0.3.3/source/guiclass.cc Examining data/zita-bls1-0.3.3/source/mainwin.cc Examining data/zita-bls1-0.3.3/source/hp3filt.cc Examining data/zita-bls1-0.3.3/source/guiclass.h Examining data/zita-bls1-0.3.3/source/styles.h Examining data/zita-bls1-0.3.3/source/png2img.h Examining data/zita-bls1-0.3.3/source/zita-bls1.cc Examining data/zita-bls1-0.3.3/source/lfshelf2.h Examining data/zita-bls1-0.3.3/source/mainwin.h Examining data/zita-bls1-0.3.3/source/shuffler.cc Examining data/zita-bls1-0.3.3/source/shuffler.h Examining data/zita-bls1-0.3.3/source/rotary.h Examining data/zita-bls1-0.3.3/source/styles.cc Examining data/zita-bls1-0.3.3/source/hp3filt.h Examining data/zita-bls1-0.3.3/source/png2img.cc Examining data/zita-bls1-0.3.3/source/rotary.cc FINAL RESULTS: data/zita-bls1-0.3.3/source/guiclass.cc:50:16: [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. if (_form) snprintf (p, n, _form, _value); data/zita-bls1-0.3.3/source/guiclass.cc:116:16: [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. if (_form) snprintf (p, n, _form, _value); data/zita-bls1-0.3.3/source/mainwin.cc:46:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (s, "%s", jclient->jname ()); data/zita-bls1-0.3.3/source/mainwin.cc:251:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (t, f, v); data/zita-bls1-0.3.3/source/mainwin.cc:39: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/zita-bls1-0.3.3/source/mainwin.cc:235: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/zita-bls1-0.3.3/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/zita-bls1-0.3.3/source/rotary.h:36: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 _lncol [4]; data/zita-bls1-0.3.3/source/zita-bls1.cc:34:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. #define CP (char *) ANALYSIS SUMMARY: Hits = 9 Lines analyzed = 2549 in approximately 0.06 seconds (45005 lines/second) Physical Source Lines of Code (SLOC) = 1739 Hits@level = [0] 17 [1] 0 [2] 5 [3] 0 [4] 4 [5] 0 Hits@level+ = [0+] 26 [1+] 9 [2+] 9 [3+] 4 [4+] 4 [5+] 0 Hits/KSLOC@level+ = [0+] 14.9511 [1+] 5.17539 [2+] 5.17539 [3+] 2.30017 [4+] 2.30017 [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.