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-intbitset-2.3.0/intbitset/intbitset.c
Examining data/python-intbitset-2.3.0/intbitset/intbitset.h
Examining data/python-intbitset-2.3.0/intbitset/intbitset_impl.c

FINAL RESULTS:

data/python-intbitset-2.3.0/intbitset/intbitset.c:446: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(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
data/python-intbitset-2.3.0/intbitset/intbitset.c:399:9:  [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 ascii_chars[128];
data/python-intbitset-2.3.0/intbitset/intbitset.c:16306: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 ctversion[4], rtversion[4];
data/python-intbitset-2.3.0/intbitset/intbitset.c:16310:9:  [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 message[200];
data/python-intbitset-2.3.0/intbitset/intbitset_impl.c:72: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(bitset->bitset, buf, bufsize);
data/python-intbitset-2.3.0/intbitset/intbitset_impl.c:99: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(ret->bitset, buf, bufsize);
data/python-intbitset-2.3.0/intbitset/intbitset_impl.c:122: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(ret->bitset, bitset->bitset, bitset->allocated * wordbytesize);
data/python-intbitset-2.3.0/intbitset/intbitset.c:330:87:  [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).
#define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
data/python-intbitset-2.3.0/intbitset/intbitset.c:444:52:  [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).
    __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c));
data/python-intbitset-2.3.0/intbitset/intbitset.c:16352:65:  [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).
    return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));

ANALYSIS SUMMARY:

Hits = 10
Lines analyzed = 17067 in approximately 0.45 seconds (37520 lines/second)
Physical Source Lines of Code (SLOC) = 10927
Hits@level = [0]   0 [1]   3 [2]   6 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+]  10 [1+]  10 [2+]   7 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 0.915164 [1+] 0.915164 [2+] 0.640615 [3+] 0.0915164 [4+] 0.0915164 [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.