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/billiard-3.6.3.0/Modules/_billiard/multiprocessing.h
Examining data/billiard-3.6.3.0/Modules/_billiard/semaphore.c
Examining data/billiard-3.6.3.0/Modules/_billiard/win32_functions.c
Examining data/billiard-3.6.3.0/Modules/_billiard/multiprocessing.c

FINAL RESULTS:

data/billiard-3.6.3.0/Modules/_billiard/semaphore.c:451:9:  [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(name_copy, name);
data/billiard-3.6.3.0/Modules/_billiard/semaphore.c:492:9:  [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(name_copy, name);
data/billiard-3.6.3.0/Modules/_billiard/multiprocessing.c:172: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 buf[CMSG_SPACE(sizeof(int))];
data/billiard-3.6.3.0/Modules/_billiard/multiprocessing.c:207: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 buf[CMSG_SPACE(sizeof(int))];
data/billiard-3.6.3.0/Modules/_billiard/multiprocessing.h:171: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 buffer[CONNECTION_BUFFER_SIZE];
data/billiard-3.6.3.0/Modules/_billiard/multiprocessing.c:304:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    n = read(fd, buf, recvlen);
data/billiard-3.6.3.0/Modules/_billiard/semaphore.c:448:34:  [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).
        name_copy = PyMem_Malloc(strlen(name) + 1);
data/billiard-3.6.3.0/Modules/_billiard/semaphore.c:489:34:  [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).
        name_copy = PyMem_Malloc(strlen(name) + 1);

ANALYSIS SUMMARY:

Hits = 8
Lines analyzed = 2218 in approximately 0.08 seconds (27765 lines/second)
Physical Source Lines of Code (SLOC) = 1725
Hits@level = [0]   2 [1]   3 [2]   3 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]  10 [1+]   8 [2+]   5 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 5.7971 [1+] 4.63768 [2+] 2.89855 [3+] 1.15942 [4+] 1.15942 [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.