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/cairo-ocaml-1.2.0/src/ml_cairo.c
Examining data/cairo-ocaml-1.2.0/src/ml_cairo.h
Examining data/cairo-ocaml-1.2.0/src/ml_cairo_bigarr.c
Examining data/cairo-ocaml-1.2.0/src/ml_cairo_font.c
Examining data/cairo-ocaml-1.2.0/src/ml_cairo_ft.c
Examining data/cairo-ocaml-1.2.0/src/ml_cairo_lablgtk.c
Examining data/cairo-ocaml-1.2.0/src/ml_cairo_matrix.c
Examining data/cairo-ocaml-1.2.0/src/ml_cairo_path.c
Examining data/cairo-ocaml-1.2.0/src/ml_cairo_pattern.c
Examining data/cairo-ocaml-1.2.0/src/ml_cairo_pdf.c
Examining data/cairo-ocaml-1.2.0/src/ml_cairo_png.c
Examining data/cairo-ocaml-1.2.0/src/ml_cairo_ps.c
Examining data/cairo-ocaml-1.2.0/src/ml_cairo_status.c
Examining data/cairo-ocaml-1.2.0/src/ml_cairo_surface.c
Examining data/cairo-ocaml-1.2.0/src/ml_cairo_svg.c
Examining data/cairo-ocaml-1.2.0/src/ml_cairo_wrappers.c
Examining data/cairo-ocaml-1.2.0/src/ml_cairo_wrappers.h
Examining data/cairo-ocaml-1.2.0/src/ml_pango_cairo.c
Examining data/cairo-ocaml-1.2.0/src/ml_svg_cairo.c

FINAL RESULTS:

data/cairo-ocaml-1.2.0/src/ml_cairo.c:543: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 (String_val (s), data, length);
data/cairo-ocaml-1.2.0/src/ml_cairo.c:564: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, String_val (s), length);
data/cairo-ocaml-1.2.0/src/ml_cairo.h:64:38:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
# define cairo_copy_matrix(dst, src)	memcpy (Bp_val(dst), Bp_val(src), 6 * Double_wosize * sizeof (value))

ANALYSIS SUMMARY:

Hits = 3
Lines analyzed = 2196 in approximately 0.11 seconds (20728 lines/second)
Physical Source Lines of Code (SLOC) = 1656
Hits@level = [0]   0 [1]   0 [2]   3 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   3 [1+]   3 [2+]   3 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 1.81159 [1+] 1.81159 [2+] 1.81159 [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.