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/cffi-0.23.0/tests/libtest.c
Examining data/cffi-0.23.0/tests/libtest2.c
Examining data/cffi-0.23.0/tests/libfsbv.c
Examining data/cffi-0.23.0/grovel/common.h

FINAL RESULTS:

data/cffi-0.23.0/tests/libtest.c:72: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, str);
data/cffi-0.23.0/grovel/common.h:54: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 buf[256];
data/cffi-0.23.0/tests/libfsbv.c:164: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).
  int len = strlen(string);
data/cffi-0.23.0/tests/libtest.c:71: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).
    char *p = malloc(strlen(str) + 1);

ANALYSIS SUMMARY:

Hits = 4
Lines analyzed = 1272 in approximately 0.10 seconds (12985 lines/second)
Physical Source Lines of Code (SLOC) = 834
Hits@level = [0]  10 [1]   2 [2]   1 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+]  14 [1+]   4 [2+]   2 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 16.7866 [1+] 4.79616 [2+] 2.39808 [3+] 1.19904 [4+] 1.19904 [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.