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/pylibmc-1.5.2/src/_pylibmcmodule.h
Examining data/pylibmc-1.5.2/src/pylibmc-version.h
Examining data/pylibmc-1.5.2/src/_pylibmcmodule.c

FINAL RESULTS:

data/pylibmc-1.5.2/src/_pylibmcmodule.c:2690:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(name, "hash_%s", b->name);
data/pylibmc-1.5.2/src/_pylibmcmodule.c:2695:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(name, "distribution_%s", b->name);
data/pylibmc-1.5.2/src/_pylibmcmodule.c:2702:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(name, "callback_%s", b->name);
data/pylibmc-1.5.2/src/_pylibmcmodule.c:2435: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 lead[128];
data/pylibmc-1.5.2/src/_pylibmcmodule.c:2445: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 lead[128];
data/pylibmc-1.5.2/src/_pylibmcmodule.c:2624:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    maj = atoi(ver);
data/pylibmc-1.5.2/src/_pylibmcmodule.c:2625:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    min = atoi(dot + 1);
data/pylibmc-1.5.2/src/_pylibmcmodule.c:2654: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 excnam[64];
data/pylibmc-1.5.2/src/_pylibmcmodule.c:2686: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[128];
data/pylibmc-1.5.2/src/_pylibmcmodule.c:627:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tmp, value, size);

ANALYSIS SUMMARY:

Hits = 10
Lines analyzed = 3256 in approximately 0.10 seconds (32455 lines/second)
Physical Source Lines of Code (SLOC) = 2409
Hits@level = [0]   3 [1]   1 [2]   6 [3]   0 [4]   3 [5]   0
Hits@level+ = [0+]  13 [1+]  10 [2+]   9 [3+]   3 [4+]   3 [5+]   0
Hits/KSLOC@level+ = [0+] 5.39643 [1+] 4.1511 [2+] 3.73599 [3+] 1.24533 [4+] 1.24533 [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.