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/pycairo-1.16.2/cairo/bufferproxy.c
Examining data/pycairo-1.16.2/cairo/cairomodule.c
Examining data/pycairo-1.16.2/cairo/compat.h
Examining data/pycairo-1.16.2/cairo/context.c
Examining data/pycairo-1.16.2/cairo/device.c
Examining data/pycairo-1.16.2/cairo/error.c
Examining data/pycairo-1.16.2/cairo/font.c
Examining data/pycairo-1.16.2/cairo/glyph.c
Examining data/pycairo-1.16.2/cairo/matrix.c
Examining data/pycairo-1.16.2/cairo/misc.c
Examining data/pycairo-1.16.2/cairo/path.c
Examining data/pycairo-1.16.2/cairo/pattern.c
Examining data/pycairo-1.16.2/cairo/private.h
Examining data/pycairo-1.16.2/cairo/pycairo.h
Examining data/pycairo-1.16.2/cairo/rectangle.c
Examining data/pycairo-1.16.2/cairo/region.c
Examining data/pycairo-1.16.2/cairo/surface.c
Examining data/pycairo-1.16.2/cairo/textcluster.c
Examining data/pycairo-1.16.2/cairo/textextents.c
Examining data/pycairo-1.16.2/cairo/enums.c

FINAL RESULTS:

data/pycairo-1.16.2/cairo/misc.c:184: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 (buf, internal);
data/pycairo-1.16.2/cairo/matrix.c:115:3:  [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[256];
data/pycairo-1.16.2/cairo/path.c:88:3:  [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[80];
data/pycairo-1.16.2/cairo/region.c:78:3:  [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[80];
data/pycairo-1.16.2/cairo/surface.c:861:3:  [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 (data, buffer, (size_t)str_length);
data/pycairo-1.16.2/cairo/matrix.c:126:7:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  int equal;
data/pycairo-1.16.2/cairo/matrix.c:146:11:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    ret = equal ? Py_True : Py_False;
data/pycairo-1.16.2/cairo/matrix.c:148:11:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    ret = equal ? Py_False : Py_True;
data/pycairo-1.16.2/cairo/misc.c:178:25:  [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).
    buf = PyMem_Malloc (strlen (internal) + 1);

ANALYSIS SUMMARY:

Hits = 9
Lines analyzed = 10778 in approximately 0.26 seconds (41069 lines/second)
Physical Source Lines of Code (SLOC) = 8485
Hits@level = [0]   0 [1]   4 [2]   4 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+]   9 [1+]   9 [2+]   5 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 1.0607 [1+] 1.0607 [2+] 0.589275 [3+] 0.117855 [4+] 0.117855 [5+]   0
Dot directories skipped = 2 (--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.