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/freecontact-1.0.21/lib/freecontact.h
Examining data/freecontact-1.0.21/lib/config.h
Examining data/freecontact-1.0.21/lib/freecontact.cpp
Examining data/freecontact-1.0.21/src/freecontact.cpp
Examining data/freecontact-1.0.21/src/fc.h
Examining data/freecontact-1.0.21/src/_write_bioxsd.cpp

FINAL RESULTS:

data/freecontact-1.0.21/lib/freecontact.cpp:471:35:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    freq_t ps_aliw[__ali.seqcnt]; memcpy(ps_aliw, __aliw.data(), __ali.seqcnt*sizeof(freq_t));
data/freecontact-1.0.21/lib/freecontact.cpp:695: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 *f = fopen("covm.dat", "w");
data/freecontact-1.0.21/lib/freecontact.cpp:755:27:  [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 *f = fopen("rho_m.dat", "w");
data/freecontact-1.0.21/lib/freecontact.cpp:1007: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(alptr, __al.data(), __al.size());
data/freecontact-1.0.21/src/freecontact.cpp:271: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.
            char s[65536];

ANALYSIS SUMMARY:

Hits = 5
Lines analyzed = 2373 in approximately 0.13 seconds (18892 lines/second)
Physical Source Lines of Code (SLOC) = 1443
Hits@level = [0]  25 [1]   0 [2]   5 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  30 [1+]   5 [2+]   5 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 20.79 [1+] 3.465 [2+] 3.465 [3+]   0 [4+]   0 [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.