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/python-prctl-1.7/_prctlmodule.c
Examining data/python-prctl-1.7/securebits.h

FINAL RESULTS:

data/python-prctl-1.7/_prctlmodule.c:54: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 name[17] = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
data/python-prctl-1.7/_prctlmodule.c:125:16:  [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).
            if(strlen(argstr) > 16) {
data/python-prctl-1.7/_prctlmodule.c:128:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(name, argstr, 16);
data/python-prctl-1.7/_prctlmodule.c:392:12:  [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).
    ptr -= strlen(arg0);
data/python-prctl-1.7/_prctlmodule.c:429:36:  [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).
    len = (size_t)(argv[argc-1]) + strlen(argv[argc-1]) - (size_t)(argv[0]);
data/python-prctl-1.7/_prctlmodule.c:430:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(argv[0], title, len);
data/python-prctl-1.7/_prctlmodule.c:431:8:  [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).
    if(strlen(title) < len)
data/python-prctl-1.7/_prctlmodule.c:432:26:  [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).
        memset(argv[0] + strlen(title), 0, len - strlen(title));
data/python-prctl-1.7/_prctlmodule.c:432:50:  [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).
        memset(argv[0] + strlen(title), 0, len - strlen(title));

ANALYSIS SUMMARY:

Hits = 9
Lines analyzed = 798 in approximately 0.03 seconds (26854 lines/second)
Physical Source Lines of Code (SLOC) = 705
Hits@level = [0]   0 [1]   8 [2]   1 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   9 [1+]   9 [2+]   1 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 12.766 [1+] 12.766 [2+] 1.41844 [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.