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-1.16.0/cairo-version.h
Examining data/cairo-1.16.0/src/cairo-freed-pool-private.h
Examining data/cairo-1.16.0/src/cairo-cogl-surface.c
Examining data/cairo-1.16.0/src/cairo-line-private.h
Examining data/cairo-1.16.0/src/cairo-quartz.h
Examining data/cairo-1.16.0/src/cairo-pdf-operators.c
Examining data/cairo-1.16.0/src/cairo-polygon-reduce.c
Examining data/cairo-1.16.0/src/cairo-freed-pool.c
Examining data/cairo-1.16.0/src/cairo-pen.c
Examining data/cairo-1.16.0/src/cairo-user-font.c
Examining data/cairo-1.16.0/src/cairo-script-private.h
Examining data/cairo-1.16.0/src/cairo-version.h
Examining data/cairo-1.16.0/src/cairo-pdf-shading-private.h
Examining data/cairo-1.16.0/src/cairo-device.c
Examining data/cairo-1.16.0/src/cairo-unicode.c
Examining data/cairo-1.16.0/src/cairo-boxes-intersect.c
Examining data/cairo-1.16.0/src/cairo-pattern-private.h
Examining data/cairo-1.16.0/src/drm/cairo-drm-i965-glyphs.c
Examining data/cairo-1.16.0/src/drm/cairo-drm-i915-private.h
Examining data/cairo-1.16.0/src/drm/cairo-drm-intel-command-private.h
Examining data/cairo-1.16.0/src/drm/cairo-drm-radeon.c
Examining data/cairo-1.16.0/src/drm/cairo-drm-intel-surface.c
Examining data/cairo-1.16.0/src/drm/cairo-drm-intel-brw-structs.h
Examining data/cairo-1.16.0/src/drm/cairo-drm-surface.c
Examining data/cairo-1.16.0/src/drm/cairo-drm-bo.c
Examining data/cairo-1.16.0/src/drm/cairo-drm-intel-debug.c
Examining data/cairo-1.16.0/src/drm/cairo-drm-i915-spans.c
Examining data/cairo-1.16.0/src/drm/cairo-drm-radeon-private.h
Examining data/cairo-1.16.0/src/drm/cairo-drm-i965-surface.c
Examining data/cairo-1.16.0/src/drm/cairo-drm-intel-brw-eu-util.c
Examining data/cairo-1.16.0/src/drm/cairo-drm-intel-brw-eu.h
Examining data/cairo-1.16.0/src/drm/cairo-drm-intel-private.h
Examining data/cairo-1.16.0/src/drm/cairo-drm-private.h
Examining data/cairo-1.16.0/src/drm/cairo-drm-i915-surface.c
Examining data/cairo-1.16.0/src/drm/cairo-drm-intel-ioctl-private.h
Examining data/cairo-1.16.0/src/drm/cairo-drm.c
Examining data/cairo-1.16.0/src/drm/cairo-drm-i965-private.h
Examining data/cairo-1.16.0/src/drm/cairo-drm-i915-shader.c
Examining data/cairo-1.16.0/src/drm/cairo-drm-gallium-surface.c
Examining data/cairo-1.16.0/src/drm/cairo-drm-i965-shader.c
Examining data/cairo-1.16.0/src/drm/cairo-drm-intel-brw-defines.h
Examining data/cairo-1.16.0/src/drm/cairo-drm-i965-spans.c
Examining data/cairo-1.16.0/src/drm/cairo-drm-i915-glyphs.c
Examining data/cairo-1.16.0/src/drm/cairo-drm-intel.c
Examining data/cairo-1.16.0/src/drm/cairo-drm-intel-brw-eu-emit.c
Examining data/cairo-1.16.0/src/drm/cairo-drm-intel-brw-eu.c
Examining data/cairo-1.16.0/src/drm/cairo-drm-radeon-surface.c
Examining data/cairo-1.16.0/src/cairo-boxes.c
Examining data/cairo-1.16.0/src/cairo-xcb.h
Examining data/cairo-1.16.0/src/cairo-svg-surface.c
Examining data/cairo-1.16.0/src/cairo-gl-composite.c
Examining data/cairo-1.16.0/src/cairo-boxes-private.h
Examining data/cairo-1.16.0/src/cairo-clip-surface.c
Examining data/cairo-1.16.0/src/cairo-image-info-private.h
Examining data/cairo-1.16.0/src/cairo-xcb-private.h
Examining data/cairo-1.16.0/src/cairo-mutex-impl-private.h
Examining data/cairo-1.16.0/src/cairo-xcb-connection.c
Examining data/cairo-1.16.0/src/cairo-ps.h
Examining data/cairo-1.16.0/src/cairo-path-fill.c
Examining data/cairo-1.16.0/src/cairo-gl-operand.c
Examining data/cairo-1.16.0/src/cairo-bentley-ottmann.c
Examining data/cairo-1.16.0/src/cairo-quartz-surface.c
Examining data/cairo-1.16.0/src/cairo-pattern-inline.h
Examining data/cairo-1.16.0/src/cairo-traps.c
Examining data/cairo-1.16.0/src/cairo-clip-polygon.c
Examining data/cairo-1.16.0/src/cairo-ft-private.h
Examining data/cairo-1.16.0/src/cairo-box-inline.h
Examining data/cairo-1.16.0/src/cairo-os2-surface.c
Examining data/cairo-1.16.0/src/test-base-compositor-surface.c
Examining data/cairo-1.16.0/src/cairo-gl-dispatch.c
Examining data/cairo-1.16.0/src/cairo-freelist-type-private.h
Examining data/cairo-1.16.0/src/cairo-recording-surface.c
Examining data/cairo-1.16.0/src/cairo-array-private.h
Examining data/cairo-1.16.0/src/cairo-rectangle.c
Examining data/cairo-1.16.0/src/cairo-gstate.c
Examining data/cairo-1.16.0/src/cairo-surface-offset-private.h
Examining data/cairo-1.16.0/src/cairo-quartz-image-surface.c
Examining data/cairo-1.16.0/src/cairo-mutex.c
Examining data/cairo-1.16.0/src/cairo-cogl-utils-private.h
Examining data/cairo-1.16.0/src/cairo-wgl-context.c
Examining data/cairo-1.16.0/src/cairo-cogl.h
Examining data/cairo-1.16.0/src/cairo-path-private.h
Examining data/cairo-1.16.0/src/cairo-line.c
Examining data/cairo-1.16.0/src/cairo-clip-inline.h
Examining data/cairo-1.16.0/src/cairo-gstate-private.h
Examining data/cairo-1.16.0/src/cairo-malloc-private.h
Examining data/cairo-1.16.0/src/cairo-lzw.c
Examining data/cairo-1.16.0/src/cairo-path-stroke-polygon.c
Examining data/cairo-1.16.0/src/cairo-surface-offset.c
Examining data/cairo-1.16.0/src/cairo-gl-private.h
Examining data/cairo-1.16.0/src/cairo-xcb-surface-core.c
Examining data/cairo-1.16.0/src/cairo-xlib-surface.c
Examining data/cairo-1.16.0/src/cairo-xcb-surface.c
Examining data/cairo-1.16.0/src/cairo-type1-glyph-names.c
Examining data/cairo-1.16.0/src/cairo-freelist.c
Examining data/cairo-1.16.0/src/cairo-xlib-visual.c
Examining data/cairo-1.16.0/src/cairo-path-stroke-traps.c
Examining data/cairo-1.16.0/src/cairo-scaled-font-private.h
Examining data/cairo-1.16.0/src/cairo-gl-traps-compositor.c
Examining data/cairo-1.16.0/src/cairo-win32.h
Examining data/cairo-1.16.0/src/cairo-polygon.c
Examining data/cairo-1.16.0/src/cairo-gl-shaders.c
Examining data/cairo-1.16.0/src/cairo-os2.h
Examining data/cairo-1.16.0/src/cairo-fixed-type-private.h
Examining data/cairo-1.16.0/src/cairo-analysis-surface-private.h
Examining data/cairo-1.16.0/src/cairo-recording-surface-private.h
Examining data/cairo-1.16.0/src/cairo-contour.c
Examining data/cairo-1.16.0/src/cairo-image-source.c
Examining data/cairo-1.16.0/src/cairo-arc.c
Examining data/cairo-1.16.0/src/cairo-glx-context.c
Examining data/cairo-1.16.0/src/cairo-cogl-context.c
Examining data/cairo-1.16.0/src/cairo-ps-surface-private.h
Examining data/cairo-1.16.0/src/cairo-atomic-private.h
Examining data/cairo-1.16.0/src/cairo-os2-private.h
Examining data/cairo-1.16.0/src/cairo-deprecated.h
Examining data/cairo-1.16.0/src/cairo-xcb-connection-core.c
Examining data/cairo-1.16.0/src/cairo-cache.c
Examining data/cairo-1.16.0/src/cairo-beos.h
Examining data/cairo-1.16.0/src/cairo-rtree.c
Examining data/cairo-1.16.0/src/cairo-pdf.h
Examining data/cairo-1.16.0/src/cairo-analysis-surface.c
Examining data/cairo-1.16.0/src/cairo-qt.h
Examining data/cairo-1.16.0/src/cairo-botor-scan-converter.c
Examining data/cairo-1.16.0/src/cairo-traps-private.h
Examining data/cairo-1.16.0/src/cairo.c
Examining data/cairo-1.16.0/src/cairo-array.c
Examining data/cairo-1.16.0/src/cairo-contour-private.h
Examining data/cairo-1.16.0/src/cairo-xlib.h
Examining data/cairo-1.16.0/src/cairo-ft.h
Examining data/cairo-1.16.0/src/cairo-cogl-utils.c
Examining data/cairo-1.16.0/src/cairo-surface-observer-inline.h
Examining data/cairo-1.16.0/src/cairo-image-compositor.c
Examining data/cairo-1.16.0/src/cairo-paginated-private.h
Examining data/cairo-1.16.0/src/cairo-xlib-screen.c
Examining data/cairo-1.16.0/src/check-has-hidden-symbols.c
Examining data/cairo-1.16.0/src/cairo-surface-snapshot.c
Examining data/cairo-1.16.0/src/cairo-cogl-gradient-private.h
Examining data/cairo-1.16.0/src/cairo-xlib-surface-private.h
Examining data/cairo-1.16.0/src/cairo-type1-private.h
Examining data/cairo-1.16.0/src/cairo-type3-glyph-surface-private.h
Examining data/cairo-1.16.0/src/cairo-cache-private.h
Examining data/cairo-1.16.0/src/cairo-xlib-fallback-compositor.c
Examining data/cairo-1.16.0/src/cairo-polygon-intersect.c
Examining data/cairo-1.16.0/src/cairo-xlib-render-compositor.c
Examining data/cairo-1.16.0/src/cairo-clip-private.h
Examining data/cairo-1.16.0/src/cairo-pdf-shading.c
Examining data/cairo-1.16.0/src/cairo-quartz-font.c
Examining data/cairo-1.16.0/src/cairo-gl-ext-def-private.h
Examining data/cairo-1.16.0/src/cairo-mask-compositor.c
Examining data/cairo-1.16.0/src/cairo-font-face-twin-data.c
Examining data/cairo-1.16.0/src/cairo-xlib-surface-shm.c
Examining data/cairo-1.16.0/src/cairo-version.c
Examining data/cairo-1.16.0/src/cairo-composite-rectangles-private.h
Examining data/cairo-1.16.0/src/cairo-cogl-context-private.h
Examining data/cairo-1.16.0/src/cairo-cogl-private.h
Examining data/cairo-1.16.0/src/cairo-tee.h
Examining data/cairo-1.16.0/src/cairo.h
Examining data/cairo-1.16.0/src/cairo-xlib-xcb-surface.c
Examining data/cairo-1.16.0/src/cairo-surface-private.h
Examining data/cairo-1.16.0/src/cairo-freelist-private.h
Examining data/cairo-1.16.0/src/cairo-path-bounds.c
Examining data/cairo-1.16.0/src/cairo-xlib-display.c
Examining data/cairo-1.16.0/src/cairo-pdf-operators-private.h
Examining data/cairo-1.16.0/src/cairo-fallback-compositor.c
Examining data/cairo-1.16.0/src/cairo-type1-subset.c
Examining data/cairo-1.16.0/src/cairo-clip-region.c
Examining data/cairo-1.16.0/src/cairo-recording-surface-inline.h
Examining data/cairo-1.16.0/src/cairo-xcb-connection-shm.c
Examining data/cairo-1.16.0/src/cairo-ps-surface.c
Examining data/cairo-1.16.0/src/cairo-script.h
Examining data/cairo-1.16.0/src/test-compositor-surface.h
Examining data/cairo-1.16.0/src/cairo-traps-compositor.c
Examining data/cairo-1.16.0/src/cairo-device-private.h
Examining data/cairo-1.16.0/src/cairo-toy-font-face.c
Examining data/cairo-1.16.0/src/cairo-line-inline.h
Examining data/cairo-1.16.0/src/cairo-tag-stack.c
Examining data/cairo-1.16.0/src/check-link.c
Examining data/cairo-1.16.0/src/cairo-truetype-subset.c
Examining data/cairo-1.16.0/src/test-compositor-surface-private.h
Examining data/cairo-1.16.0/src/cairo-cff-subset.c
Examining data/cairo-1.16.0/src/cairo-slope.c
Examining data/cairo-1.16.0/src/win32/cairo-win32-device.c
Examining data/cairo-1.16.0/src/win32/cairo-win32-surface.c
Examining data/cairo-1.16.0/src/win32/cairo-win32-private.h
Examining data/cairo-1.16.0/src/win32/cairo-win32-gdi-compositor.c
Examining data/cairo-1.16.0/src/win32/cairo-win32-font.c
Examining data/cairo-1.16.0/src/win32/cairo-win32-system.c
Examining data/cairo-1.16.0/src/win32/cairo-win32-display-surface.c
Examining data/cairo-1.16.0/src/win32/cairo-win32-debug.c
Examining data/cairo-1.16.0/src/win32/cairo-win32-printing-surface.c
Examining data/cairo-1.16.0/src/cairo-mesh-pattern-rasterizer.c
Examining data/cairo-1.16.0/src/cairo-private.h
Examining data/cairo-1.16.0/src/cairo-surface-fallback.c
Examining data/cairo-1.16.0/src/cairo-svg-surface-private.h
Examining data/cairo-1.16.0/src/cairo-gl-gradient-private.h
Examining data/cairo-1.16.0/src/cairo-gl-info.c
Examining data/cairo-1.16.0/src/cairo-quartz-private.h
Examining data/cairo-1.16.0/src/cairo-arc-private.h
Examining data/cairo-1.16.0/src/cairo-composite-rectangles.c
Examining data/cairo-1.16.0/src/cairo-surface-observer.c
Examining data/cairo-1.16.0/src/cairo-spans.c
Examining data/cairo-1.16.0/src/test-compositor-surface.c
Examining data/cairo-1.16.0/src/cairo-surface-wrapper-private.h
Examining data/cairo-1.16.0/src/cairo-list-private.h
Examining data/cairo-1.16.0/src/cairo-combsort-inline.h
Examining data/cairo-1.16.0/src/cairo-directfb.h
Examining data/cairo-1.16.0/src/cairo-compositor.c
Examining data/cairo-1.16.0/src/cairo-png.c
Examining data/cairo-1.16.0/src/cairo-time-private.h
Examining data/cairo-1.16.0/src/cairo-surface.c
Examining data/cairo-1.16.0/src/cairo-paginated-surface-private.h
Examining data/cairo-1.16.0/src/test-null-compositor-surface.c
Examining data/cairo-1.16.0/src/cairo-surface-snapshot-private.h
Examining data/cairo-1.16.0/src/cairo-region-private.h
Examining data/cairo-1.16.0/src/cairo-surface-clipper-private.h
Examining data/cairo-1.16.0/src/cairo-spans-compositor-private.h
Examining data/cairo-1.16.0/src/cairo-fontconfig-private.h
Examining data/cairo-1.16.0/src/cairo-fixed-private.h
Examining data/cairo-1.16.0/src/cairo-script-surface.c
Examining data/cairo-1.16.0/src/cairo-clip-tor-scan-converter.c
Examining data/cairo-1.16.0/src/cairo-clip.c
Examining data/cairo-1.16.0/src/cairo-type3-glyph-surface.c
Examining data/cairo-1.16.0/src/cairo-directfb-surface.c
Examining data/cairo-1.16.0/src/cairo-pattern.c
Examining data/cairo-1.16.0/src/cairo-mutex-list-private.h
Examining data/cairo-1.16.0/src/cairo-tristrip-private.h
Examining data/cairo-1.16.0/src/cairo-mutex-type-private.h
Examining data/cairo-1.16.0/src/cairo-xcb-surface-render.c
Examining data/cairo-1.16.0/src/cairo-scaled-font-subsets-private.h
Examining data/cairo-1.16.0/src/cairo-tee-surface.c
Examining data/cairo-1.16.0/src/cairo-surface-subsurface-private.h
Examining data/cairo-1.16.0/src/cairo-user-font-private.h
Examining data/cairo-1.16.0/src/cairo-pixman-private.h
Examining data/cairo-1.16.0/src/cairo-gl.h
Examining data/cairo-1.16.0/src/cairo-default-context.c
Examining data/cairo-1.16.0/src/cairo-bentley-ottmann-rectilinear.c
Examining data/cairo-1.16.0/src/cairo-surface-snapshot-inline.h
Examining data/cairo-1.16.0/src/cairo-shape-mask-compositor.c
Examining data/cairo-1.16.0/src/cairo-no-compositor.c
Examining data/cairo-1.16.0/src/cairo-tor22-scan-converter.c
Examining data/cairo-1.16.0/src/cairo-observer.c
Examining data/cairo-1.16.0/src/cairo-gl-dispatch-private.h
Examining data/cairo-1.16.0/src/cairo-hash-private.h
Examining data/cairo-1.16.0/src/cairo-surface-subsurface-inline.h
Examining data/cairo-1.16.0/src/cairo-contour-inline.h
Examining data/cairo-1.16.0/src/cairo-time.c
Examining data/cairo-1.16.0/src/cairo-mempool.c
Examining data/cairo-1.16.0/src/cairo-list-inline.h
Examining data/cairo-1.16.0/src/cairo-base85-stream.c
Examining data/cairo-1.16.0/src/test-null-compositor-surface.h
Examining data/cairo-1.16.0/src/cairo-tag-attributes-private.h
Examining data/cairo-1.16.0/src/cairoint.h
Examining data/cairo-1.16.0/src/cairo-xml.h
Examining data/cairo-1.16.0/src/cairo-paginated-surface.c
Examining data/cairo-1.16.0/src/cairo-path-fixed.c
Examining data/cairo-1.16.0/src/cairo-image-surface-inline.h
Examining data/cairo-1.16.0/src/cairo-gl-glyphs.c
Examining data/cairo-1.16.0/src/cairo-svg.h
Examining data/cairo-1.16.0/src/cairo-misc.c
Examining data/cairo-1.16.0/src/cairo-base64-stream.c
Examining data/cairo-1.16.0/src/cairo-clip-boxes.c
Examining data/cairo-1.16.0/src/cairo-font-options.c
Examining data/cairo-1.16.0/src/cairo-stroke-style.c
Examining data/cairo-1.16.0/src/cairo-truetype-subset-private.h
Examining data/cairo-1.16.0/src/cairo-path-stroke-tristrip.c
Examining data/cairo-1.16.0/src/cairo-surface-backend-private.h
Examining data/cairo-1.16.0/src/cairo-surface-wrapper.c
Examining data/cairo-1.16.0/src/cairo-egl-context.c
Examining data/cairo-1.16.0/src/cairo-xcb-connection-render.c
Examining data/cairo-1.16.0/src/cairo-mono-scan-converter.c
Examining data/cairo-1.16.0/src/cairo-bentley-ottmann-rectangular.c
Examining data/cairo-1.16.0/src/cairo-reference-count-private.h
Examining data/cairo-1.16.0/src/cairo-path-in-fill.c
Examining data/cairo-1.16.0/src/cairo-stroke-dash.c
Examining data/cairo-1.16.0/src/cairo-xlib-source.c
Examining data/cairo-1.16.0/src/cairo-compositor-private.h
Examining data/cairo-1.16.0/src/cairo-image-surface-private.h
Examining data/cairo-1.16.0/src/cairo-tristrip.c
Examining data/cairo-1.16.0/src/cairo-wideint-private.h
Examining data/cairo-1.16.0/src/cairo-tee-surface-private.h
Examining data/cairo-1.16.0/src/cairo-color.c
Examining data/cairo-1.16.0/src/cairo-surface-inline.h
Examining data/cairo-1.16.0/src/cairo-surface-clipper.c
Examining data/cairo-1.16.0/src/cairo-matrix.c
Examining data/cairo-1.16.0/src/cairo-tor-scan-converter.c
Examining data/cairo-1.16.0/src/cairo-gl-gradient.c
Examining data/cairo-1.16.0/src/cairo-cogl-gradient.c
Examining data/cairo-1.16.0/src/cairo-backend-private.h
Examining data/cairo-1.16.0/src/cairo-wideint-type-private.h
Examining data/cairo-1.16.0/src/cairo-surface-subsurface.c
Examining data/cairo-1.16.0/src/cairo-stroke-dash-private.h
Examining data/cairo-1.16.0/src/cairo-tag-attributes.c
Examining data/cairo-1.16.0/src/cairo-image-surface.c
Examining data/cairo-1.16.0/src/cairo-path-stroke.c
Examining data/cairo-1.16.0/src/cairo-error.c
Examining data/cairo-1.16.0/src/cairo-rtree-private.h
Examining data/cairo-1.16.0/src/cairo-damage-private.h
Examining data/cairo-1.16.0/src/cairo-pdf-surface-private.h
Examining data/cairo-1.16.0/src/cairo-damage.c
Examining data/cairo-1.16.0/src/cairo-default-context-private.h
Examining data/cairo-1.16.0/src/cairo-gl-surface.c
Examining data/cairo-1.16.0/src/cairo-xcb-shm.c
Examining data/cairo-1.16.0/src/cairo-qt-surface.cpp
Examining data/cairo-1.16.0/src/cairo-surface-fallback-private.h
Examining data/cairo-1.16.0/src/cairo-hull.c
Examining data/cairo-1.16.0/src/test-paginated-surface.h
Examining data/cairo-1.16.0/src/cairo-scaled-font-subsets.c
Examining data/cairo-1.16.0/src/cairo-xcb-screen.c
Examining data/cairo-1.16.0/src/cairo-xlib-xrender.h
Examining data/cairo-1.16.0/src/test-paginated-surface.c
Examining data/cairo-1.16.0/src/cairo-error-inline.h
Examining data/cairo-1.16.0/src/cairo-region.c
Examining data/cairo-1.16.0/src/cairo-error-private.h
Examining data/cairo-1.16.0/src/cairo-raster-source-pattern.c
Examining data/cairo-1.16.0/src/cairo-spline.c
Examining data/cairo-1.16.0/src/cairo-wideint.c
Examining data/cairo-1.16.0/src/cairo-gl-msaa-compositor.c
Examining data/cairo-1.16.0/src/cairo-fixed.c
Examining data/cairo-1.16.0/src/cairo-quartz-image.h
Examining data/cairo-1.16.0/src/cairo-spans-private.h
Examining data/cairo-1.16.0/src/cairo-atomic.c
Examining data/cairo-1.16.0/src/cairo-beos-surface.cpp
Examining data/cairo-1.16.0/src/cairo-font-face.c
Examining data/cairo-1.16.0/src/cairo-spans-compositor.c
Examining data/cairo-1.16.0/src/cairo-deflate-stream.c
Examining data/cairo-1.16.0/src/cairo-compiler-private.h
Examining data/cairo-1.16.0/src/cairo-type1-fallback.c
Examining data/cairo-1.16.0/src/cairo-pdf-interchange.c
Examining data/cairo-1.16.0/src/cairo-image-info.c
Examining data/cairo-1.16.0/src/cairo-surface-observer-private.h
Examining data/cairo-1.16.0/src/cairo-output-stream.c
Examining data/cairo-1.16.0/src/cairo-hash.c
Examining data/cairo-1.16.0/src/cairo-types-private.h
Examining data/cairo-1.16.0/src/cairo-gl-source.c
Examining data/cairo-1.16.0/src/cairo-slope-private.h
Examining data/cairo-1.16.0/src/cairo-scaled-font.c
Examining data/cairo-1.16.0/src/cairo-debug.c
Examining data/cairo-1.16.0/src/cairo-font-face-twin.c
Examining data/cairo-1.16.0/src/cairo-mempool-private.h
Examining data/cairo-1.16.0/src/cairo-xlib-private.h
Examining data/cairo-1.16.0/src/cairo-xlib-xrender-private.h
Examining data/cairo-1.16.0/src/cairo-xcb-resources.c
Examining data/cairo-1.16.0/src/cairo-path.c
Examining data/cairo-1.16.0/src/cairo-path-fixed-private.h
Examining data/cairo-1.16.0/src/cairo-drm.h
Examining data/cairo-1.16.0/src/cairo-vg-surface.c
Examining data/cairo-1.16.0/src/cairo-vg.h
Examining data/cairo-1.16.0/src/cairo-gl-device.c
Examining data/cairo-1.16.0/src/cairo-tag-stack-private.h
Examining data/cairo-1.16.0/src/cairo-xlib-core-compositor.c
Examining data/cairo-1.16.0/src/cairo-output-stream-private.h
Examining data/cairo-1.16.0/src/cairo-rectangular-scan-converter.c
Examining data/cairo-1.16.0/src/cairo-path-stroke-boxes.c
Examining data/cairo-1.16.0/src/cairo-mutex-private.h
Examining data/cairo-1.16.0/src/cairo-xml-surface.c
Examining data/cairo-1.16.0/src/cairo-gl-spans-compositor.c
Examining data/cairo-1.16.0/src/cairo-pdf-surface.c
Examining data/cairo-1.16.0/src/cairo-ft-font.c
Examining data/cairo-1.16.0/util/show-polygon.c
Examining data/cairo-1.16.0/util/trace-to-xml.c
Examining data/cairo-1.16.0/util/show-contour.c
Examining data/cairo-1.16.0/util/backtrace-symbols.c
Examining data/cairo-1.16.0/util/show-events.c
Examining data/cairo-1.16.0/util/show-edges.c
Examining data/cairo-1.16.0/util/cairo-sphinx/fdr.c
Examining data/cairo-1.16.0/util/cairo-sphinx/sphinx.c
Examining data/cairo-1.16.0/util/cairo-script/cairo-script-scanner.c
Examining data/cairo-1.16.0/util/cairo-script/cairo-script-private.h
Examining data/cairo-1.16.0/util/cairo-script/cairo-script-interpreter.c
Examining data/cairo-1.16.0/util/cairo-script/csi-bind.c
Examining data/cairo-1.16.0/util/cairo-script/cairo-script-objects.c
Examining data/cairo-1.16.0/util/cairo-script/cairo-script-stack.c
Examining data/cairo-1.16.0/util/cairo-script/csi-trace.c
Examining data/cairo-1.16.0/util/cairo-script/cairo-script-interpreter.h
Examining data/cairo-1.16.0/util/cairo-script/cairo-script-operators.c
Examining data/cairo-1.16.0/util/cairo-script/cairo-script-file.c
Examining data/cairo-1.16.0/util/cairo-script/csi-replay.c
Examining data/cairo-1.16.0/util/cairo-script/csi-exec.c
Examining data/cairo-1.16.0/util/cairo-script/cairo-script-hash.c
Examining data/cairo-1.16.0/util/xml-to-trace.c
Examining data/cairo-1.16.0/util/malloc-stats.c
Examining data/cairo-1.16.0/util/cairo-gobject/cairo-gobject-structs.c
Examining data/cairo-1.16.0/util/cairo-gobject/cairo-gobject-enums.c
Examining data/cairo-1.16.0/util/cairo-gobject/cairo-gobject.h
Examining data/cairo-1.16.0/util/show-traps.c
Examining data/cairo-1.16.0/util/cairo-missing/strndup.c
Examining data/cairo-1.16.0/util/cairo-missing/cairo-missing.h
Examining data/cairo-1.16.0/util/cairo-missing/getline.c
Examining data/cairo-1.16.0/util/cairo-trace/lookup-symbol.h
Examining data/cairo-1.16.0/util/cairo-trace/lookup-symbol.c
Examining data/cairo-1.16.0/util/cairo-trace/trace.c
Examining data/cairo-1.16.0/util/cairo-fdr/fdr.c
Examining data/cairo-1.16.0/util/font-view.c
Examining data/cairo-1.16.0/perf/cairo-perf-graph-files.c
Examining data/cairo-1.16.0/perf/cairo-perf-trace.c
Examining data/cairo-1.16.0/perf/cairo-perf-chart.c
Examining data/cairo-1.16.0/perf/cairo-perf-report.c
Examining data/cairo-1.16.0/perf/cairo-analyse-trace.c
Examining data/cairo-1.16.0/perf/cairo-perf-micro.c
Examining data/cairo-1.16.0/perf/cairo-perf-graph.h
Examining data/cairo-1.16.0/perf/cairo-perf.c
Examining data/cairo-1.16.0/perf/cairo-perf-print.c
Examining data/cairo-1.16.0/perf/cairo-stats.h
Examining data/cairo-1.16.0/perf/cairo-perf-diff-files.c
Examining data/cairo-1.16.0/perf/cairo-stats.c
Examining data/cairo-1.16.0/perf/micro/curve.c
Examining data/cairo-1.16.0/perf/micro/a1-line.c
Examining data/cairo-1.16.0/perf/micro/hatching.c
Examining data/cairo-1.16.0/perf/micro/rectangles.c
Examining data/cairo-1.16.0/perf/micro/wave.c
Examining data/cairo-1.16.0/perf/micro/many-strokes.c
Examining data/cairo-1.16.0/perf/micro/subimage_copy.c
Examining data/cairo-1.16.0/perf/micro/mosaic.c
Examining data/cairo-1.16.0/perf/micro/zrusin.c
Examining data/cairo-1.16.0/perf/micro/world-map.h
Examining data/cairo-1.16.0/perf/micro/wide-fills.c
Examining data/cairo-1.16.0/perf/micro/box-outline.c
Examining data/cairo-1.16.0/perf/micro/many-curves.c
Examining data/cairo-1.16.0/perf/micro/unaligned-clip.c
Examining data/cairo-1.16.0/perf/micro/mosaic.h
Examining data/cairo-1.16.0/perf/micro/line.c
Examining data/cairo-1.16.0/perf/micro/fill.c
Examining data/cairo-1.16.0/perf/micro/stroke.c
Examining data/cairo-1.16.0/perf/micro/disjoint.c
Examining data/cairo-1.16.0/perf/micro/wide-strokes.c
Examining data/cairo-1.16.0/perf/micro/intersections.c
Examining data/cairo-1.16.0/perf/micro/pattern_create_radial.c
Examining data/cairo-1.16.0/perf/micro/glyphs.c
Examining data/cairo-1.16.0/perf/micro/a1-curve.c
Examining data/cairo-1.16.0/perf/micro/tiger.c
Examining data/cairo-1.16.0/perf/micro/world-map.c
Examining data/cairo-1.16.0/perf/micro/fill-clip.c
Examining data/cairo-1.16.0/perf/micro/rounded-rectangles.c
Examining data/cairo-1.16.0/perf/micro/long-dashed-lines.c
Examining data/cairo-1.16.0/perf/micro/mask.c
Examining data/cairo-1.16.0/perf/micro/long-lines.c
Examining data/cairo-1.16.0/perf/micro/text.c
Examining data/cairo-1.16.0/perf/micro/paint.c
Examining data/cairo-1.16.0/perf/micro/composite-checker.c
Examining data/cairo-1.16.0/perf/micro/pixel.c
Examining data/cairo-1.16.0/perf/micro/many-fills.c
Examining data/cairo-1.16.0/perf/micro/tessellate.c
Examining data/cairo-1.16.0/perf/micro/twin.c
Examining data/cairo-1.16.0/perf/micro/dragon.c
Examining data/cairo-1.16.0/perf/micro/spiral.c
Examining data/cairo-1.16.0/perf/micro/pythagoras-tree.c
Examining data/cairo-1.16.0/perf/micro/hash-table.c
Examining data/cairo-1.16.0/perf/micro/cairo-perf-cover.c
Examining data/cairo-1.16.0/perf/micro/sierpinski.c
Examining data/cairo-1.16.0/perf/micro/paint-with-alpha.c
Examining data/cairo-1.16.0/perf/micro/zrusin-another.h
Examining data/cairo-1.16.0/perf/cairo-perf.h
Examining data/cairo-1.16.0/perf/cairo-perf-compare-backends.c
Examining data/cairo-1.16.0/perf/cairo-perf-graph-widget.c
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-system.h
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-quartz.c
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-vg.c
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-cogl.c
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate.h
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate.c
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-getopt.c
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-win32.c
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-qt.cpp
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-ps.c
Examining data/cairo-1.16.0/boilerplate/check-link.c
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-system.c
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-egl.c
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-test-surfaces.c
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-pdf.c
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-getopt.h
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-xlib.h
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-xlib.c
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-constructors.c
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-wgl.c
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-drm.c
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-win32-printing.c
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-xcb.c
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-directfb.c
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-glx.c
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-scaled-font.h
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-beos.cpp
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-private.h
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-svg.c
Examining data/cairo-1.16.0/boilerplate/cairo-boilerplate-script.c
Examining data/cairo-1.16.0/test/implicit-close.c
Examining data/cairo-1.16.0/test/fill-image.c
Examining data/cairo-1.16.0/test/degenerate-solid-dash.c
Examining data/cairo-1.16.0/test/clip-device-offset.c
Examining data/cairo-1.16.0/test/dash-offset-negative.c
Examining data/cairo-1.16.0/test/a1-image-sample.c
Examining data/cairo-1.16.0/test/rgb24-ignore-alpha.c
Examining data/cairo-1.16.0/test/mesh-pattern-control-points.c
Examining data/cairo-1.16.0/test/font-matrix-translation.c
Examining data/cairo-1.16.0/test/reflected-stroke.c
Examining data/cairo-1.16.0/test/source-clip.c
Examining data/cairo-1.16.0/test/stride-12-image.c
Examining data/cairo-1.16.0/test/filter-nearest-transformed.c
Examining data/cairo-1.16.0/test/copy-path.c
Examining data/cairo-1.16.0/test/select-font-face.c
Examining data/cairo-1.16.0/test/caps-tails-curve.c
Examining data/cairo-1.16.0/test/hatchings.c
Examining data/cairo-1.16.0/test/self-intersecting.c
Examining data/cairo-1.16.0/test/ft-text-vertical-layout-type3.c
Examining data/cairo-1.16.0/test/xlib-surface.c
Examining data/cairo-1.16.0/test/random-intersections-nonzero.c
Examining data/cairo-1.16.0/test/push-group-path-offset.c
Examining data/cairo-1.16.0/test/pdf-mime-data.c
Examining data/cairo-1.16.0/test/clip-empty.c
Examining data/cairo-1.16.0/test/select-font-no-show-text.c
Examining data/cairo-1.16.0/test/rotate-stroke-box.c
Examining data/cairo-1.16.0/test/clip-empty-save.c
Examining data/cairo-1.16.0/test/twin-antialias-mixed.c
Examining data/cairo-1.16.0/test/rectilinear-miter-limit.c
Examining data/cairo-1.16.0/test/clip-twice.c
Examining data/cairo-1.16.0/test/ft-font-create-for-ft-face.c
Examining data/cairo-1.16.0/test/group-state.c
Examining data/cairo-1.16.0/test/text-zero-len.c
Examining data/cairo-1.16.0/test/stroke-ctm-caps.c
Examining data/cairo-1.16.0/test/subsurface-similar-repeat.c
Examining data/cairo-1.16.0/test/self-copy-overlap.c
Examining data/cairo-1.16.0/test/pattern-get-type.c
Examining data/cairo-1.16.0/test/font-face-get-type.c
Examining data/cairo-1.16.0/test/device-offset-positive.c
Examining data/cairo-1.16.0/test/fill-alpha-pattern.c
Examining data/cairo-1.16.0/test/trap-clip.c
Examining data/cairo-1.16.0/test/recordflip.c
Examining data/cairo-1.16.0/test/inverse-text.c
Examining data/cairo-1.16.0/test/degenerate-curve-to.c
Examining data/cairo-1.16.0/test/bitmap-font.c
Examining data/cairo-1.16.0/test/large-clip.c
Examining data/cairo-1.16.0/test/degenerate-dash.c
Examining data/cairo-1.16.0/test/operator.c
Examining data/cairo-1.16.0/test/scaled-font-zero-matrix.c
Examining data/cairo-1.16.0/test/linear-gradient-subset.c
Examining data/cairo-1.16.0/test/text-antialias-subpixel.c
Examining data/cairo-1.16.0/test/ps2png.c
Examining data/cairo-1.16.0/test/fill-disjoint.c
Examining data/cairo-1.16.0/test/clip-nesting.c
Examining data/cairo-1.16.0/test/toy-font-face.c
Examining data/cairo-1.16.0/test/leaky-dashed-stroke.c
Examining data/cairo-1.16.0/test/pdf-surface-source.c
Examining data/cairo-1.16.0/test/solid-pattern-cache-stress.c
Examining data/cairo-1.16.0/test/smask-image-mask.c
Examining data/cairo-1.16.0/test/clip-stroke-no-op.c
Examining data/cairo-1.16.0/test/group-unaligned.c
Examining data/cairo-1.16.0/test/mask-transformed-image.c
Examining data/cairo-1.16.0/test/path-append.c
Examining data/cairo-1.16.0/test/world-map.h
Examining data/cairo-1.16.0/test/degenerate-arcs.c
Examining data/cairo-1.16.0/test/font-variations.c
Examining data/cairo-1.16.0/test/joins-loop.c
Examining data/cairo-1.16.0/test/joins-star.c
Examining data/cairo-1.16.0/test/svg2png.c
Examining data/cairo-1.16.0/test/gl-device-release.c
Examining data/cairo-1.16.0/test/xcomposite-projection.c
Examining data/cairo-1.16.0/test/surface-finish-twice.c
Examining data/cairo-1.16.0/test/error-setters.c
Examining data/cairo-1.16.0/test/png.c
Examining data/cairo-1.16.0/test/linear-gradient-extend.c
Examining data/cairo-1.16.0/test/radial-outer-focus.c
Examining data/cairo-1.16.0/test/cairo-test-private.h
Examining data/cairo-1.16.0/test/coverage.c
Examining data/cairo-1.16.0/test/clip-group-shapes.c
Examining data/cairo-1.16.0/test/ft-text-vertical-layout-type1.c
Examining data/cairo-1.16.0/test/white-in-noop.c
Examining data/cairo-1.16.0/test/fill-alpha.c
Examining data/cairo-1.16.0/test/user-font-rescale.c
Examining data/cairo-1.16.0/test/big-empty-box.c
Examining data/cairo-1.16.0/test/fill-and-stroke-alpha.c
Examining data/cairo-1.16.0/test/xlib-surface-source.c
Examining data/cairo-1.16.0/test/svg-surface.c
Examining data/cairo-1.16.0/test/in-fill-empty-trapezoid.c
Examining data/cairo-1.16.0/test/drunkard-tails.c
Examining data/cairo-1.16.0/test/mask-transformed-similar.c
Examining data/cairo-1.16.0/test/stroke-image.c
Examining data/cairo-1.16.0/test/invalid-matrix.c
Examining data/cairo-1.16.0/test/get-clip.c
Examining data/cairo-1.16.0/test/api-special-cases.c
Examining data/cairo-1.16.0/test/skew-extreme.c
Examining data/cairo-1.16.0/test/clip-rectilinear.c
Examining data/cairo-1.16.0/test/pthread-show-text.c
Examining data/cairo-1.16.0/test/degenerate-rel-curve-to.c
Examining data/cairo-1.16.0/test/map-to-image.c
Examining data/cairo-1.16.0/test/ps-features.c
Examining data/cairo-1.16.0/test/clip-image.c
Examining data/cairo-1.16.0/test/group-paint.c
Examining data/cairo-1.16.0/test/mask-glyphs.c
Examining data/cairo-1.16.0/test/dash-caps-joins.c
Examining data/cairo-1.16.0/test/pdf-features.c
Examining data/cairo-1.16.0/test/glyph-cache-pressure.c
Examining data/cairo-1.16.0/test/move-to-show-surface.c
Examining data/cairo-1.16.0/test/record1414x.c
Examining data/cairo-1.16.0/test/gradient-zero-stops-mask.c
Examining data/cairo-1.16.0/test/sample.c
Examining data/cairo-1.16.0/test/record-replay-extend.c
Examining data/cairo-1.16.0/test/negative-stride-image.c
Examining data/cairo-1.16.0/test/random-clips.c
Examining data/cairo-1.16.0/test/clip-zero.c
Examining data/cairo-1.16.0/test/extend-repeat.c
Examining data/cairo-1.16.0/test/create-from-broken-png-stream.c
Examining data/cairo-1.16.0/test/twin-antialias-none.c
Examining data/cairo-1.16.0/test/line-width-large-overlap.c
Examining data/cairo-1.16.0/test/bug-bo-collins.c
Examining data/cairo-1.16.0/test/degenerate-linear-gradient.c
Examining data/cairo-1.16.0/test/create-from-png.c
Examining data/cairo-1.16.0/test/linear-uniform.c
Examining data/cairo-1.16.0/test/simple.c
Examining data/cairo-1.16.0/test/record90.c
Examining data/cairo-1.16.0/test/checkerboard.c
Examining data/cairo-1.16.0/test/over-below-source.c
Examining data/cairo-1.16.0/test/pdf2png.c
Examining data/cairo-1.16.0/test/bug-84115.c
Examining data/cairo-1.16.0/test/any2ppm.c
Examining data/cairo-1.16.0/test/bug-51910.c
Examining data/cairo-1.16.0/test/font-options.c
Examining data/cairo-1.16.0/test/create-from-png-stream.c
Examining data/cairo-1.16.0/test/paint-clip-fill.c
Examining data/cairo-1.16.0/test/smask-stroke.c
Examining data/cairo-1.16.0/test/partial-clip-text.c
Examining data/cairo-1.16.0/test/big-little-triangle.c
Examining data/cairo-1.16.0/test/source-surface-scale-paint.c
Examining data/cairo-1.16.0/test/pthread-same-source.c
Examining data/cairo-1.16.0/test/overlapping-boxes.c
Examining data/cairo-1.16.0/test/clip-intersect.c
Examining data/cairo-1.16.0/test/device-offset.c
Examining data/cairo-1.16.0/test/record-mesh.c
Examining data/cairo-1.16.0/test/clip-fill-rule-pixel-aligned.c
Examining data/cairo-1.16.0/test/pdiff/args.c
Examining data/cairo-1.16.0/test/pdiff/lpyramid.c
Examining data/cairo-1.16.0/test/pdiff/perceptualdiff.c
Examining data/cairo-1.16.0/test/pdiff/pdiff.c
Examining data/cairo-1.16.0/test/pdiff/pdiff.h
Examining data/cairo-1.16.0/test/pdiff/lpyramid.h
Examining data/cairo-1.16.0/test/pdiff/args.h
Examining data/cairo-1.16.0/test/xcb-huge-subimage.c
Examining data/cairo-1.16.0/test/mesh-pattern-transformed.c
Examining data/cairo-1.16.0/test/caps-sub-paths.c
Examining data/cairo-1.16.0/test/translate-show-surface.c
Examining data/cairo-1.16.0/test/pthread-similar.c
Examining data/cairo-1.16.0/test/dash-scale.c
Examining data/cairo-1.16.0/test/bug-bo-rectangular.c
Examining data/cairo-1.16.0/test/scale-down-source-surface-paint.c
Examining data/cairo-1.16.0/test/path-precision.c
Examining data/cairo-1.16.0/test/degenerate-radial-gradient.c
Examining data/cairo-1.16.0/test/pdf-isolated-group.c
Examining data/cairo-1.16.0/test/bug-spline.c
Examining data/cairo-1.16.0/test/subsurface-repeat.c
Examining data/cairo-1.16.0/test/degenerate-arc.c
Examining data/cairo-1.16.0/test/cairo-test-runner.c
Examining data/cairo-1.16.0/test/large-source.c
Examining data/cairo-1.16.0/test/clip-fill-no-op.c
Examining data/cairo-1.16.0/test/svg-clip.c
Examining data/cairo-1.16.0/test/linear-gradient-one-stop.c
Examining data/cairo-1.16.0/test/subsurface-reflect.c
Examining data/cairo-1.16.0/test/surface-pattern-operator.c
Examining data/cairo-1.16.0/test/record-neg-extents.c
Examining data/cairo-1.16.0/test/self-copy.c
Examining data/cairo-1.16.0/test/operator-alpha.c
Examining data/cairo-1.16.0/test/infinite-join.c
Examining data/cairo-1.16.0/test/bug-40410.c
Examining data/cairo-1.16.0/test/gl-surface-source.c
Examining data/cairo-1.16.0/test/clear.c
Examining data/cairo-1.16.0/test/random-intersections-curves-eo.c
Examining data/cairo-1.16.0/test/clip-double-free.c
Examining data/cairo-1.16.0/test/unclosed-strokes.c
Examining data/cairo-1.16.0/test/shape-general-convex.c
Examining data/cairo-1.16.0/test/composite-integer-translate-source.c
Examining data/cairo-1.16.0/test/big-line.c
Examining data/cairo-1.16.0/test/filter-bilinear-extents.c
Examining data/cairo-1.16.0/test/smask-fill.c
Examining data/cairo-1.16.0/test/scale-offset-similar.c
Examining data/cairo-1.16.0/test/ft-text-antialias-none.c
Examining data/cairo-1.16.0/test/stroke-clipped.c
Examining data/cairo-1.16.0/test/big-trap.c
Examining data/cairo-1.16.0/test/large-font.c
Examining data/cairo-1.16.0/test/smp-glyph.c
Examining data/cairo-1.16.0/test/caps-joins-curve.c
Examining data/cairo-1.16.0/test/subsurface-image-repeat.c
Examining data/cairo-1.16.0/test/clipped-surface.c
Examining data/cairo-1.16.0/test/clip-polygons.c
Examining data/cairo-1.16.0/test/set-source.c
Examining data/cairo-1.16.0/test/mesh-pattern.c
Examining data/cairo-1.16.0/test/a1-mask-sample.c
Examining data/cairo-1.16.0/test/big-empty-triangle.c
Examining data/cairo-1.16.0/test/nil-surface.c
Examining data/cairo-1.16.0/test/ps-surface-source.c
Examining data/cairo-1.16.0/test/clip-mixed-antialias.c
Examining data/cairo-1.16.0/test/caps-joins-alpha.c
Examining data/cairo-1.16.0/test/device-offset-fractional.c
Examining data/cairo-1.16.0/test/surface-source.c
Examining data/cairo-1.16.0/test/get-path-extents.c
Examining data/cairo-1.16.0/test/fill-degenerate-sort-order.c
Examining data/cairo-1.16.0/test/imagediff.c
Examining data/cairo-1.16.0/test/rectangle-rounding-error.c
Examining data/cairo-1.16.0/test/a1-rasterisation.c
Examining data/cairo-1.16.0/test/tighten-bounds.c
Examining data/cairo-1.16.0/test/dash-offset.c
Examining data/cairo-1.16.0/test/operator-alpha-alpha.c
Examining data/cairo-1.16.0/test/a1-bug.c
Examining data/cairo-1.16.0/test/paint-repeat.c
Examining data/cairo-1.16.0/test/halo.c
Examining data/cairo-1.16.0/test/rotated-clip.c
Examining data/cairo-1.16.0/test/pdf-tagged-text.c
Examining data/cairo-1.16.0/test/overlapping-glyphs.c
Examining data/cairo-1.16.0/test/composite-integer-translate-over-repeat.c
Examining data/cairo-1.16.0/test/get-group-target.c
Examining data/cairo-1.16.0/test/dash-no-dash.c
Examining data/cairo-1.16.0/test/clip-disjoint.c
Examining data/cairo-1.16.0/test/pixman-rotate.c
Examining data/cairo-1.16.0/test/line-width-scale.c
Examining data/cairo-1.16.0/test/caps.c
Examining data/cairo-1.16.0/test/line-width.c
Examining data/cairo-1.16.0/test/a8-mask.c
Examining data/cairo-1.16.0/test/show-text-current-point.c
Examining data/cairo-1.16.0/test/composite-integer-translate-over.c
Examining data/cairo-1.16.0/test/clip-text.c
Examining data/cairo-1.16.0/test/linear-gradient.c
Examining data/cairo-1.16.0/test/arc-direction.c
Examining data/cairo-1.16.0/test/smask.c
Examining data/cairo-1.16.0/test/alpha-similar.c
Examining data/cairo-1.16.0/test/operator-clear.c
Examining data/cairo-1.16.0/test/dash-infinite-loop.c
Examining data/cairo-1.16.0/test/extend-pad.c
Examining data/cairo-1.16.0/test/random-intersections-eo.c
Examining data/cairo-1.16.0/test/leaky-dashed-rectangle.c
Examining data/cairo-1.16.0/test/clip-fill.c
Examining data/cairo-1.16.0/test/clip-disjoint-quad.c
Examining data/cairo-1.16.0/test/linear-step-function.c
Examining data/cairo-1.16.0/test/fill-rule.c
Examining data/cairo-1.16.0/test/radial-gradient-extend.c
Examining data/cairo-1.16.0/test/text-glyph-range.c
Examining data/cairo-1.16.0/test/xcb-huge-image-shm.c
Examining data/cairo-1.16.0/test/copy-disjoint.c
Examining data/cairo-1.16.0/test/get-and-set.c
Examining data/cairo-1.16.0/test/png-flatten.c
Examining data/cairo-1.16.0/test/operator-source.c
Examining data/cairo-1.16.0/test/text-pattern.c
Examining data/cairo-1.16.0/test/gl-oversized-surface.c
Examining data/cairo-1.16.0/test/smask-mask.c
Examining data/cairo-1.16.0/test/gradient-zero-stops.c
Examining data/cairo-1.16.0/test/rounded-rectangle-stroke.c
Examining data/cairo-1.16.0/test/rectilinear-dash-scale.c
Examining data/cairo-1.16.0/test/transforms.c
Examining data/cairo-1.16.0/test/clip-fill-rule.c
Examining data/cairo-1.16.0/test/cairo-test.h
Examining data/cairo-1.16.0/test/close-path-current-point.c
Examining data/cairo-1.16.0/test/over-above-source.c
Examining data/cairo-1.16.0/test/gradient-alpha.c
Examining data/cairo-1.16.0/test/show-glyphs-many.c
Examining data/cairo-1.16.0/test/surface-pattern.c
Examining data/cairo-1.16.0/test/buffer-diff.c
Examining data/cairo-1.16.0/test/clip-shape.c
Examining data/cairo-1.16.0/test/shape-sierpinski.c
Examining data/cairo-1.16.0/test/xcb-stress-cache.c
Examining data/cairo-1.16.0/test/degenerate-pen.c
Examining data/cairo-1.16.0/test/egl-oversized-surface.c
Examining data/cairo-1.16.0/test/extend-pad-border.c
Examining data/cairo-1.16.0/test/get-xrender-format.c
Examining data/cairo-1.16.0/test/dash-state.c
Examining data/cairo-1.16.0/test/clipped-group.c
Examining data/cairo-1.16.0/test/subsurface-scale.c
Examining data/cairo-1.16.0/test/fill-missed-stop.c
Examining data/cairo-1.16.0/test/pass-through.c
Examining data/cairo-1.16.0/test/stroke-open-box.c
Examining data/cairo-1.16.0/test/a1-fill.c
Examining data/cairo-1.16.0/test/tiger.c
Examining data/cairo-1.16.0/test/push-group.c
Examining data/cairo-1.16.0/test/extend-reflect-similar.c
Examining data/cairo-1.16.0/test/line-width-zero.c
Examining data/cairo-1.16.0/test/world-map.c
Examining data/cairo-1.16.0/test/miter-precision.c
Examining data/cairo-1.16.0/test/group-clip.c
Examining data/cairo-1.16.0/test/fallback-resolution.c
Examining data/cairo-1.16.0/test/subsurface-modify-child.c
Examining data/cairo-1.16.0/test/huge-radial.c
Examining data/cairo-1.16.0/test/dash-curve.c
Examining data/cairo-1.16.0/test/clip-empty-group.c
Examining data/cairo-1.16.0/test/mesh-pattern-conical.c
Examining data/cairo-1.16.0/test/rectilinear-dash.c
Examining data/cairo-1.16.0/test/xcb-snapshot-assert.c
Examining data/cairo-1.16.0/test/fill-and-stroke-alpha-add.c
Examining data/cairo-1.16.0/test/pattern-getters.c
Examining data/cairo-1.16.0/test/zero-alpha.c
Examining data/cairo-1.16.0/test/long-dashed-lines.c
Examining data/cairo-1.16.0/test/mask-alpha.c
Examining data/cairo-1.16.0/test/clip-push-group.c
Examining data/cairo-1.16.0/test/paint-with-alpha-group-clip.c
Examining data/cairo-1.16.0/test/spline-decomposition.c
Examining data/cairo-1.16.0/test/ft-show-glyphs-table.c
Examining data/cairo-1.16.0/test/extend-reflect.c
Examining data/cairo-1.16.0/test/clip-twice-rectangle.c
Examining data/cairo-1.16.0/test/a1-sample.c
Examining data/cairo-1.16.0/test/subsurface-outside-target.c
Examining data/cairo-1.16.0/test/mask.c
Examining data/cairo-1.16.0/test/source-clip-scale.c
Examining data/cairo-1.16.0/test/ft-show-glyphs-positioning.c
Examining data/cairo-1.16.0/test/record2x.c
Examining data/cairo-1.16.0/test/subsurface-modify-parent.c
Examining data/cairo-1.16.0/test/a1-traps-sample.c
Examining data/cairo-1.16.0/test/huge-linear.c
Examining data/cairo-1.16.0/test/long-lines.c
Examining data/cairo-1.16.0/test/clear-source.c
Examining data/cairo-1.16.0/test/scale-offset-image.c
Examining data/cairo-1.16.0/test/recording-surface-extend.c
Examining data/cairo-1.16.0/test/smask-text.c
Examining data/cairo-1.16.0/test/subsurface.c
Examining data/cairo-1.16.0/test/line-width-tolerance.c
Examining data/cairo-1.16.0/test/partial-coverage.c
Examining data/cairo-1.16.0/test/user-font-mask.c
Examining data/cairo-1.16.0/test/multi-page.c
Examining data/cairo-1.16.0/test/clip-complex-bug61592.c
Examining data/cairo-1.16.0/test/clip-disjoint-hatching.c
Examining data/cairo-1.16.0/test/bug-source-cu.c
Examining data/cairo-1.16.0/test/a1-clip.c
Examining data/cairo-1.16.0/test/in-fill-trapezoid.c
Examining data/cairo-1.16.0/test/rectilinear-grid.c
Examining data/cairo-1.16.0/test/rectilinear-fill.c
Examining data/cairo-1.16.0/test/mesh-pattern-fold.c
Examining data/cairo-1.16.0/test/cairo-test.c
Examining data/cairo-1.16.0/test/create-for-stream.c
Examining data/cairo-1.16.0/test/mesh-pattern-accuracy.c
Examining data/cairo-1.16.0/test/ps-eps.c
Examining data/cairo-1.16.0/test/user-font-proxy.c
Examining data/cairo-1.16.0/test/paint.c
Examining data/cairo-1.16.0/test/clip-all.c
Examining data/cairo-1.16.0/test/stroke-pattern.c
Examining data/cairo-1.16.0/test/linear-gradient-large.c
Examining data/cairo-1.16.0/test/fallback.c
Examining data/cairo-1.16.0/test/large-twin-antialias-mixed.c
Examining data/cairo-1.16.0/test/joins.c
Examining data/cairo-1.16.0/test/new-sub-path.c
Examining data/cairo-1.16.0/test/zero-mask.c
Examining data/cairo-1.16.0/test/outline-tolerance.c
Examining data/cairo-1.16.0/test/joins-retrace.c
Examining data/cairo-1.16.0/test/finer-grained-fallbacks.c
Examining data/cairo-1.16.0/test/culled-glyphs.c
Examining data/cairo-1.16.0/test/extend-pad-similar.c
Examining data/cairo-1.16.0/test/path-stroke-twice.c
Examining data/cairo-1.16.0/test/unbounded-operator.c
Examining data/cairo-1.16.0/test/clip-contexts.c
Examining data/cairo-1.16.0/test/inverted-clip.c
Examining data/cairo-1.16.0/test/surface-pattern-big-scale-down.c
Examining data/cairo-1.16.0/test/bilevel-image.c
Examining data/cairo-1.16.0/test/user-font.c
Examining data/cairo-1.16.0/test/degenerate-path.c
Examining data/cairo-1.16.0/test/text-transform.c
Examining data/cairo-1.16.0/test/pixman-downscale.c
Examining data/cairo-1.16.0/test/thin-lines.c
Examining data/cairo-1.16.0/test/rectilinear-stroke.c
Examining data/cairo-1.16.0/test/surface-pattern-scale-up.c
Examining data/cairo-1.16.0/test/arc-looping-dash.c
Examining data/cairo-1.16.0/test/smask-paint.c
Examining data/cairo-1.16.0/test/close-path.c
Examining data/cairo-1.16.0/test/mask-surface-ctm.c
Examining data/cairo-1.16.0/test/record-extend.c
Examining data/cairo-1.16.0/test/clip-unbounded.c
Examining data/cairo-1.16.0/test/show-glyphs-advance.c
Examining data/cairo-1.16.0/test/filter-nearest-offset.c
Examining data/cairo-1.16.0/test/unantialiased-shapes.c
Examining data/cairo-1.16.0/test/rounded-rectangle-fill.c
Examining data/cairo-1.16.0/test/path-currentpoint.c
Examining data/cairo-1.16.0/test/gradient-constant-alpha.c
Examining data/cairo-1.16.0/test/line-width-overlap.c
Examining data/cairo-1.16.0/test/text-antialias.c
Examining data/cairo-1.16.0/test/over-between-source.c
Examining data/cairo-1.16.0/test/twin-antialias-subpixel.c
Examining data/cairo-1.16.0/test/clip-draw-unbounded.c
Examining data/cairo-1.16.0/test/random-intersections-curves-nz.c
Examining data/cairo-1.16.0/test/mesh-pattern-overlap.c
Examining data/cairo-1.16.0/test/surface-pattern-scale-down.c
Examining data/cairo-1.16.0/test/bug-bo-ricotz.c
Examining data/cairo-1.16.0/test/surface-pattern-scale-down-extend.c
Examining data/cairo-1.16.0/test/mask-ctm.c
Examining data/cairo-1.16.0/test/curve-to-as-line-to.c
Examining data/cairo-1.16.0/test/push-group-color.c
Examining data/cairo-1.16.0/test/twin.c
Examining data/cairo-1.16.0/test/mime-data.c
Examining data/cairo-1.16.0/test/linear-gradient-reflect.c
Examining data/cairo-1.16.0/test/recording-surface-pattern.c
Examining data/cairo-1.16.0/test/fill-empty.c
Examining data/cairo-1.16.0/test/extended-blend.c
Examining data/cairo-1.16.0/test/xcb-surface-source.c
Examining data/cairo-1.16.0/test/horizontal-clip.c
Examining data/cairo-1.16.0/test/fill-and-stroke.c
Examining data/cairo-1.16.0/test/aliasing.c
Examining data/cairo-1.16.0/test/rel-path.c
Examining data/cairo-1.16.0/test/buffer-diff.h
Examining data/cairo-1.16.0/test/large-source-roi.c
Examining data/cairo-1.16.0/test/mime-surface-api.c
Examining data/cairo-1.16.0/test/quartz-surface-source.c
Examining data/cairo-1.16.0/test/subsurface-pad.c
Examining data/cairo-1.16.0/test/radial-gradient.c
Examining data/cairo-1.16.0/test/raster-source.c
Examining data/cairo-1.16.0/test/extend-repeat-similar.c
Examining data/cairo-1.16.0/test/text-rotate.c
Examining data/cairo-1.16.0/test/dash-zero-length.c
Examining data/cairo-1.16.0/test/xlib-expose-event.c
Examining data/cairo-1.16.0/test/clip-complex-shape.c
Examining data/cairo-1.16.0/test/a8-clear.c
Examining data/cairo-1.16.0/test/text-cache-crash.c
Examining data/cairo-1.16.0/test/half-coverage.c
Examining data/cairo-1.16.0/test/mime-unique-id.c
Examining data/cairo-1.16.0/test/device-offset-scale.c
Examining data/cairo-1.16.0/test/overlapping-dash-caps.c
Examining data/cairo-1.16.0/test/text-unhinted-metrics.c
Examining data/cairo-1.16.0/test/paint-with-alpha.c
Examining data/cairo-1.16.0/test/bug-seams.c
Examining data/cairo-1.16.0/test/paint-source-alpha.c
Examining data/cairo-1.16.0/test/clip-stroke.c
Examining data/cairo-1.16.0/test/clip-operator.c
Examining data/cairo-1.16.0/test/bug-extents.c
Examining data/cairo-1.16.0/test/leaky-polygon.c
Examining data/cairo-1.16.0/test/svg-surface-source.c
Examining data/cairo-1.16.0/test/scale-source-surface-paint.c
Examining data/cairo-1.16.0/test/image-bug-710072.c
Examining data/cairo-1.16.0/test/over-around-source.c
Examining data/cairo-1.16.0/test/recording-ink-extents.c
Examining data/cairo-1.16.0/test/big-little-box.c
Examining data/cairo-1.16.0/test/rotate-image-surface-paint.c
Examining data/cairo-1.16.0/test/egl-surface-source.c
Examining data/cairo-1.16.0/test/user-data.c
Examining data/cairo-1.16.0/test/twin-antialias-gray.c
Examining data/cairo-1.16.0/test/cairo-test-constructors.c
Examining data/cairo-1.16.0/test/unaligned-box.c
Examining data/cairo-1.16.0/test/arc-infinite-loop.c
Examining data/cairo-1.16.0/test/record.c
Examining data/cairo-1.16.0/test/leaky-dash.c
Examining data/cairo-1.16.0/test/caps-joins.c
Examining data/cairo-1.16.0/test/a1-mask.c
Examining data/cairo-1.16.0/test/image-surface-source.c
Examining data/cairo-1.16.0/test/cairo-test-trace.c

FINAL RESULTS:

data/cairo-1.16.0/test/cairo-test-runner.c:170:9:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    if (readlink (buf, buf, sizeof (buf)) != -1 &&
data/cairo-1.16.0/util/cairo-trace/lookup-symbol.c:196:12:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	int len = readlink ("/proc/self/exe", path, sizeof (path) - 1);
data/cairo-1.16.0/boilerplate/cairo-boilerplate-pdf.c:168:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (command, "./pdf2png %s %s 1",
data/cairo-1.16.0/boilerplate/cairo-boilerplate-pdf.c:171:18:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    exitstatus = system (command);
data/cairo-1.16.0/boilerplate/cairo-boilerplate-ps.c:224:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (command, "gs -q -r72 -g%dx%d -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pngalpha -sOutputFile=%s %s %s",
data/cairo-1.16.0/boilerplate/cairo-boilerplate-ps.c:228:18:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    exitstatus = system (command);
data/cairo-1.16.0/boilerplate/cairo-boilerplate-svg.c:201:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (command, "./svg2png %s %s",
data/cairo-1.16.0/boilerplate/cairo-boilerplate-svg.c:204:18:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    exitstatus = system (command);
data/cairo-1.16.0/boilerplate/cairo-boilerplate-system.c:111:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    ret = vsnprintf (buffer, sizeof (buffer), fmt, va);
data/cairo-1.16.0/boilerplate/cairo-boilerplate-system.c:130:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	ret = vsnprintf (*strp, len, fmt, va);
data/cairo-1.16.0/boilerplate/cairo-boilerplate-win32-printing.c:297:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (command, "gs -q -r72 -g%dx%d -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pngalpha -sOutputFile=%s %s",
data/cairo-1.16.0/boilerplate/cairo-boilerplate-win32-printing.c:300:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (system (command) != 0)
data/cairo-1.16.0/boilerplate/cairo-boilerplate.c:922:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system (any2ppm) != 0)
data/cairo-1.16.0/boilerplate/cairo-boilerplate.c:932: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 (addr.sun_path, SOCKET_PATH);
data/cairo-1.16.0/boilerplate/cairo-boilerplate.c:939:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    len = sprintf (command, "%s %d\n", filename, page);
data/cairo-1.16.0/boilerplate/cairo-boilerplate.c:952:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (command, "%s %s %d", any2ppm, filename, page);
data/cairo-1.16.0/boilerplate/cairo-boilerplate.c:953:12:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    return popen (command, "rb");
data/cairo-1.16.0/perf/cairo-analyse-trace.c:393:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access (perf->names[i], R_OK) == 0)
data/cairo-1.16.0/perf/cairo-perf-chart.c:989:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (buf, "(relative to %s)", str);
data/cairo-1.16.0/perf/cairo-perf-report.c:62:26:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define parse_error(...) fprintf(stderr, __VA_ARGS__); return TEST_REPORT_STATUS_ERROR;
data/cairo-1.16.0/perf/cairo-perf-trace.c:561:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access (perf->names[i], R_OK) == 0)
data/cairo-1.16.0/src/cairo-bentley-ottmann.c:1086:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf (file, fmt, ap);
data/cairo-1.16.0/src/cairo-compiler-private.h:199:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
#define access _access
data/cairo-1.16.0/src/cairo-compiler-private.h:203:9:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
#define popen _popen
data/cairo-1.16.0/src/cairo-compiler-private.h:204:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/cairo-1.16.0/src/cairo-compiler-private.h:204:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/cairo-1.16.0/src/cairo-compiler-private.h:207:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define vsnprintf _vsnprintf
data/cairo-1.16.0/src/cairo-font-options.c:247:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (p, options->variations);
data/cairo-1.16.0/src/cairo-font-options.c:249:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (p, other->variations);
data/cairo-1.16.0/src/cairo-ft-font.c:73:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
#define access(p, m) 0
data/cairo-1.16.0/src/cairo-ft-font.c:617:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access (filename, R_OK) == 0) {
data/cairo-1.16.0/src/cairo-ft-font.c:1994:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (p, other->base.variations);
data/cairo-1.16.0/src/cairo-ft-font.c:1996:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (p, options->base.variations);
data/cairo-1.16.0/src/cairo-gl-private.h:80:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf (stderr, \
data/cairo-1.16.0/src/cairo-gl-private.h:268:49:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    GLvoid *(*MapBuffer) (GLenum target, GLenum access);
data/cairo-1.16.0/src/cairo-output-stream.c:473:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf (buffer, sizeof buffer,
data/cairo-1.16.0/src/cairo-output-stream.c:476:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf (buffer, sizeof buffer, single_fmt, va_arg (ap, int));
data/cairo-1.16.0/src/cairo-output-stream.c:486:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf (buffer, sizeof buffer,
data/cairo-1.16.0/src/cairo-output-stream.c:489:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf (buffer, sizeof buffer,
data/cairo-1.16.0/src/cairo-quartz-font.c:220:2:  [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 (full_name, family);
data/cairo-1.16.0/src/cairo-quartz-surface.c:63:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define ND(_x)	fprintf _x
data/cairo-1.16.0/src/cairo-xlib-surface.c:81:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf (stderr, \
data/cairo-1.16.0/src/cairo-xlib-surface.c:102:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    len = vsnprintf (buf, sizeof (buf), fmt, ap);
data/cairo-1.16.0/src/cairoint.h:2142:54:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TRACE(x) fprintf (stderr, "%s: ", __FILE__), fprintf x
data/cairo-1.16.0/src/drm/cairo-drm-intel-debug.c:461:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf (stderr, __VA_ARGS__);				\
data/cairo-1.16.0/src/drm/cairo-drm-intel-debug.c:477:6:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    fprintf (stderr, __VA_ARGS__);			\
data/cairo-1.16.0/test/any2ppm.c:209:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    len = sprintf (buf, "%s %d %d 255\n", format_str, width, height);
data/cairo-1.16.0/test/any2ppm.c:788: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 (addr.sun_path, SOCKET_PATH);
data/cairo-1.16.0/test/cairo-test-runner.c:118:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf (fmt, ap);
data/cairo-1.16.0/test/cairo-test-trace.c:525: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 (addr.sun_path, socket_path);
data/cairo-1.16.0/test/cairo-test-trace.c:1253: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 (addr.sun_path, socket_path);
data/cairo-1.16.0/test/cairo-test-trace.c:1623:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access (test->names[i], R_OK) == 0)
data/cairo-1.16.0/test/cairo-test-trace.c:1713:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    if (access (test.names[n], R_OK) == 0) {
data/cairo-1.16.0/test/cairo-test-trace.c:1770:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf (stderr, fmt, va);
data/cairo-1.16.0/test/cairo-test-trace.c:1781:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf (stderr, fmt, va);
data/cairo-1.16.0/test/cairo-test.c:271:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf (file, fmt, va);
data/cairo-1.16.0/test/cairo-test.c:312:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access (ref_name, F_OK) != 0)
data/cairo-1.16.0/test/cairo-test.c:327:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access (ref_name, F_OK) != 0)
data/cairo-1.16.0/test/cairo-test.c:339:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access (ref_name, F_OK) != 0)
data/cairo-1.16.0/test/cairo-test.c:354:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access (ref_name, F_OK) != 0)
data/cairo-1.16.0/test/cairo-test.c:366:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access (ref_name, F_OK) != 0)
data/cairo-1.16.0/test/cairo-test.c:379:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access (ref_name, F_OK) != 0)
data/cairo-1.16.0/test/cairo-test.c:389:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access (ref_name, F_OK) != 0)
data/cairo-1.16.0/test/imagediff.c:53:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf (stderr, fmt, va);
data/cairo-1.16.0/test/imagediff.c:62:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf (stderr, fmt, va);
data/cairo-1.16.0/test/pdf-mime-data.c:151:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (command, "pdfimages -j %s %s", filename, CAIRO_TEST_OUTPUT_DIR "/" BASENAME);
data/cairo-1.16.0/test/pdf-mime-data.c:152:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    exit_status = system (command);
data/cairo-1.16.0/test/pdf-tagged-text.c:175:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat (buf, prefix);
data/cairo-1.16.0/test/pdf-tagged-text.c:194:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "dest='%s'", section->heading);
data/cairo-1.16.0/test/pdf-tagged-text.c:235:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "name='%s'", section->heading);
data/cairo-1.16.0/test/pdf-tagged-text.c:236:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf2, "dest='%s'", section->heading);
data/cairo-1.16.0/util/backtrace-symbols.c:350:3:  [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(f_strings, locations[x][0]);
data/cairo-1.16.0/util/cairo-script/cairo-script-operators.c:51:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/cairo-1.16.0/util/cairo-script/cairo-script-operators.c:51:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:197: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 (addr.sun_path, socket_path);
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:361:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    len = sprintf (buf, "%s\n", clients->shm_path);
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:702:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (buf, "output/%s.trace", csum);
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:706:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (buf, "output/%s.recording.png", csum);
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:712:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf (buf, "output/%s.%s.png", csum, c->name);
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:1363: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 (addr.sun_path, socket_path);
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:1408:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	len = sprintf (buf,
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:1412:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	len = sprintf (buf,
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:1433:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    len = sprintf (buf, "client-trace name=%s\n", name);
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:1497:12:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    return execvp (argv[0], argv);
data/cairo-1.16.0/util/cairo-trace/trace.c:689:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf (buffer, sizeof buffer,
data/cairo-1.16.0/util/cairo-trace/trace.c:692:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf (buffer, sizeof buffer, single_fmt, va_arg (ap, int));
data/cairo-1.16.0/util/cairo-trace/trace.c:702:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf (buffer, sizeof buffer,
data/cairo-1.16.0/util/cairo-trace/trace.c:705:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf (buffer, sizeof buffer,
data/cairo-1.16.0/util/cairo-trace/trace.c:710:6:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	    snprintf (buffer, sizeof buffer,
data/cairo-1.16.0/util/xml-to-trace.c:169:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (trace->tail_buf, "] %s set-dash\n", offset);
data/cairo-1.16.0/boilerplate/cairo-boilerplate-getopt.c:140:31:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		else if(optstr[0] == '+' || getenv("POSIXLY_CORRECT"))
data/cairo-1.16.0/boilerplate/cairo-boilerplate.c:601:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((tname = getenv ("CAIRO_TEST_TARGET")) != NULL && *tname) {
data/cairo-1.16.0/boilerplate/cairo-boilerplate.c:627:29:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			    if ((tcontent_name = getenv ("CAIRO_TEST_TARGET_FORMAT")) != NULL && *tcontent_name) {
data/cairo-1.16.0/boilerplate/cairo-boilerplate.c:696:28:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		    if ((tcontent_name = getenv ("CAIRO_TEST_TARGET_FORMAT")) != NULL && *tcontent_name) {
data/cairo-1.16.0/boilerplate/cairo-boilerplate.c:746:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((tname = getenv ("CAIRO_TEST_TARGET_EXCLUDE")) != NULL && *tname) {
data/cairo-1.16.0/boilerplate/cairo-boilerplate.c:913:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    any2ppm = getenv ("ANY2PPM");
data/cairo-1.16.0/perf/cairo-analyse-trace.c:531:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("CAIRO_TRACE_DIR") != NULL)
data/cairo-1.16.0/perf/cairo-analyse-trace.c:532:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	trace_dir = getenv ("CAIRO_TRACE_DIR");
data/cairo-1.16.0/perf/cairo-perf-micro.c:93:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("CAIRO_TEST_SIMILAR") == NULL)
data/cairo-1.16.0/perf/cairo-perf-micro.c:199:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("CAIRO_PERF_OUTPUT") != NULL) { /* check output */
data/cairo-1.16.0/perf/cairo-perf-micro.c:349:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((iters = getenv("CAIRO_PERF_ITERATIONS")) && *iters)
data/cairo-1.16.0/perf/cairo-perf-micro.c:357:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((ms = getenv("CAIRO_PERF_ITERATION_MS")) && *ms) {
data/cairo-1.16.0/perf/cairo-perf-trace.c:445:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((iters = getenv ("CAIRO_PERF_ITERATIONS")) && *iters)
data/cairo-1.16.0/perf/cairo-perf-trace.c:1004:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("CAIRO_TRACE_DIR") != NULL)
data/cairo-1.16.0/perf/cairo-perf-trace.c:1005:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	trace_dir = getenv ("CAIRO_TRACE_DIR");
data/cairo-1.16.0/perf/micro/pattern_create_radial.c:93:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand (time (0));
data/cairo-1.16.0/perf/micro/rectangles.c:109:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand (8478232);
data/cairo-1.16.0/perf/micro/rounded-rectangles.c:133:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand (8478232);
data/cairo-1.16.0/perf/micro/wave.c:36:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand (0xdeadbeef);
data/cairo-1.16.0/src/cairo-bentley-ottmann-rectangular.c:99:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("CAIRO_DEBUG_TRAPS") == NULL)
data/cairo-1.16.0/src/cairo-bentley-ottmann.c:139:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("CAIRO_DEBUG_TRAPS") == NULL)
data/cairo-1.16.0/src/cairo-bentley-ottmann.c:184:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("CAIRO_DEBUG_TRAPS") == NULL)
data/cairo-1.16.0/src/cairo-bentley-ottmann.c:1078:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("CAIRO_DEBUG_EVENTS") == NULL)
data/cairo-1.16.0/src/cairo-bentley-ottmann.c:1892:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand (0);
data/cairo-1.16.0/src/cairo-boxes-intersect.c:101:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("CAIRO_DEBUG_TRAPS") == NULL)
data/cairo-1.16.0/src/cairo-gl-device.c:163:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *env = getenv ("CAIRO_GL_COMPOSITOR");
data/cairo-1.16.0/src/cairo-gl-info.c:83:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *env = getenv ("CAIRO_GL_VBO_SIZE");
data/cairo-1.16.0/src/cairo-mutex-impl-private.h:194:39:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
# define CAIRO_MUTEX_IMPL_LOCK(mutex) EnterCriticalSection (&(mutex))
data/cairo-1.16.0/src/cairo-mutex-impl-private.h:196:39:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
# define CAIRO_MUTEX_IMPL_INIT(mutex) InitializeCriticalSection (&(mutex))
data/cairo-1.16.0/src/cairo-pdf-surface.c:507:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("CAIRO_DEBUG_PDF") != NULL)
data/cairo-1.16.0/src/cairo-xcb-connection.c:326:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    env = getenv ("CAIRO_DEBUG");
data/cairo-1.16.0/src/cairo-xlib-display.c:231:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    env = getenv ("CAIRO_DEBUG");
data/cairo-1.16.0/src/drm/cairo-drm-gallium-surface.c:756:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    libdir = getenv ("CAIRO_GALLIUM_LIBDIR");
data/cairo-1.16.0/src/drm/cairo-drm-i915-surface.c:2893:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("CAIRO_DEBUG_DRM") != NULL)
data/cairo-1.16.0/src/drm/cairo-drm.c:210:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("CAIRO_GALLIUM_FORCE"))
data/cairo-1.16.0/test/any2ppm.c:777:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("ANY2PPM_FORCE") == NULL && any2ppm_daemon_exists ())
data/cairo-1.16.0/test/any2ppm.c:806:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("ANY2PPM_NODAEMON") == NULL && daemonize () == -1) {
data/cairo-1.16.0/test/any2ppm.c:816:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("ANY2PPM_TIMEOUT") != NULL) {
data/cairo-1.16.0/test/any2ppm.c:817:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	timeout = atoi (getenv ("ANY2PPM_TIMEOUT"));
data/cairo-1.16.0/test/cairo-test-runner.c:724:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("CAIRO_TEST_MODE")) {
data/cairo-1.16.0/test/cairo-test-runner.c:725:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *env = getenv ("CAIRO_TEST_MODE");
data/cairo-1.16.0/test/cairo-test-runner.c:747:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("CAIRO_TEST_FORCE_PASS")) {
data/cairo-1.16.0/test/cairo-test-runner.c:748:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *env = getenv ("CAIRO_TEST_FORCE_PASS");
data/cairo-1.16.0/test/cairo-test-runner.c:755:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    cairo_tests_env = getenv("CAIRO_TESTS");
data/cairo-1.16.0/test/cairo-test-trace.c:1706:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("CAIRO_TRACE_DIR") != NULL)
data/cairo-1.16.0/test/cairo-test-trace.c:1707:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	trace_dir = getenv ("CAIRO_TRACE_DIR");
data/cairo-1.16.0/test/cairo-test.c:161:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("CAIRO_TEST_MALLOC_FAILURE"))
data/cairo-1.16.0/test/cairo-test.c:162:30:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	ctx->malloc_failure = atoi (getenv ("CAIRO_TEST_MALLOC_FAILURE"));
data/cairo-1.16.0/test/cairo-test.c:168:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("CAIRO_TEST_TIMEOUT"))
data/cairo-1.16.0/test/cairo-test.c:169:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	ctx->timeout = atoi (getenv ("CAIRO_TEST_TIMEOUT"));
data/cairo-1.16.0/test/cairo-test.c:202:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	ctx->srcdir = getenv ("srcdir");
data/cairo-1.16.0/test/cairo-test.c:206:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	ctx->refdir = getenv ("CAIRO_REF_DIR");
data/cairo-1.16.0/test/cairo-test.c:416:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("CAIRO_TEST_IGNORE_SIMILAR"))
data/cairo-1.16.0/test/solid-pattern-cache-stress.c:37:9:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define drand48() (rand () / (double) RAND_MAX)
data/cairo-1.16.0/test/solid-pattern-cache-stress.c:193:21:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	    use_solid (cr, drand48 (), drand48 (), drand48 ());
data/cairo-1.16.0/test/solid-pattern-cache-stress.c:193:33:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	    use_solid (cr, drand48 (), drand48 (), drand48 ());
data/cairo-1.16.0/test/solid-pattern-cache-stress.c:193:45:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	    use_solid (cr, drand48 (), drand48 (), drand48 ());
data/cairo-1.16.0/util/cairo-sphinx/fdr.c:128:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	    const char *env = getenv ("CAIRO_SPHINX_FD");
data/cairo-1.16.0/util/cairo-trace/trace.c:760:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char const *name = getenv ("CAIRO_TRACE_PROG_NAME");
data/cairo-1.16.0/util/cairo-trace/trace.c:796:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    env = getenv ("CAIRO_TRACE_FLUSH");
data/cairo-1.16.0/util/cairo-trace/trace.c:801:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    env = getenv ("CAIRO_TRACE_LINE_INFO");
data/cairo-1.16.0/util/cairo-trace/trace.c:806:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    env = getenv ("CAIRO_TRACE_MARK_DIRTY");
data/cairo-1.16.0/util/cairo-trace/trace.c:810:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    filename = getenv ("CAIRO_TRACE_FD");
data/cairo-1.16.0/util/cairo-trace/trace.c:827:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    filename = getenv ("CAIRO_TRACE_OUTFILE_EXACT");
data/cairo-1.16.0/util/cairo-trace/trace.c:831:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	filename = getenv ("CAIRO_TRACE_OUTDIR");
data/cairo-1.16.0/boilerplate/cairo-boilerplate-pdf.c:165: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    command[4096];
data/cairo-1.16.0/boilerplate/cairo-boilerplate-ps.c:221: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    command[4096];
data/cairo-1.16.0/boilerplate/cairo-boilerplate-svg.c:198: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    command[4096];
data/cairo-1.16.0/boilerplate/cairo-boilerplate-system.c:107: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 buffer[BUF_SIZE];
data/cairo-1.16.0/boilerplate/cairo-boilerplate-system.c:127:2:  [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 (*strp, buffer, ret);
data/cairo-1.16.0/boilerplate/cairo-boilerplate-win32-printing.c:268: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 command[4096];
data/cairo-1.16.0/boilerplate/cairo-boilerplate.c:876: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 buf[80];
data/cairo-1.16.0/boilerplate/cairo-boilerplate.c:883:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open (SOCKET_PATH ".pid", O_RDONLY);
data/cairo-1.16.0/boilerplate/cairo-boilerplate.c:891:8:  [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).
	pid = atoi (buf);
data/cairo-1.16.0/boilerplate/cairo-boilerplate.c:905: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 command[4096];
data/cairo-1.16.0/perf/cairo-analyse-trace.c:61:12:  [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.
    static char name[_MAX_FNAME + 1];
data/cairo-1.16.0/perf/cairo-analyse-trace.c:283:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen (filename, "r");
data/cairo-1.16.0/perf/cairo-analyse-trace.c:565: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[1024];
data/cairo-1.16.0/perf/cairo-analyse-trace.c:568:7:  [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 (buf, dir, end-dir);
data/cairo-1.16.0/perf/cairo-perf-chart.c:372:2:  [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/cairo-1.16.0/perf/cairo-perf-chart.c:409:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf (buf, "%.1f", -value/100 + 1);
data/cairo-1.16.0/perf/cairo-perf-chart.c:411:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf (buf, "%.1f", value/100 + 1);
data/cairo-1.16.0/perf/cairo-perf-chart.c:479: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 buf[80];
data/cairo-1.16.0/perf/cairo-perf-chart.c:519:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (buf, "%.1f", -value/100 + 1);
data/cairo-1.16.0/perf/cairo-perf-chart.c:521:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (buf, "%.1f", value/100 + 1);
data/cairo-1.16.0/perf/cairo-perf-chart.c:617: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 buf[80];
data/cairo-1.16.0/perf/cairo-perf-chart.c:646:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (buf, "%.0fs", i*v/1000);
data/cairo-1.16.0/perf/cairo-perf-chart.c:678: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 buf[80];
data/cairo-1.16.0/perf/cairo-perf-chart.c:707:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (buf, "%.*fx", precision, i*v + 1);
data/cairo-1.16.0/perf/cairo-perf-chart.c:984:2:  [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/cairo-1.16.0/perf/cairo-perf-chart.c:1046:20:  [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).
	    chart.width = atoi (argv[i] + 8);
data/cairo-1.16.0/perf/cairo-perf-chart.c:1048:21:  [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).
	    chart.height = atoi (argv[i] + 9);
data/cairo-1.16.0/perf/cairo-perf-compare-backends.c:77:12:  [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.
    static char const *ascii_boxes[8] = {
data/cairo-1.16.0/perf/cairo-perf-compare-backends.c:81:12:  [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.
    static char const *utf_boxes[8] = {
data/cairo-1.16.0/perf/cairo-perf-diff-files.c:111:12:  [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.
    static char const *ascii_boxes[8] = {
data/cairo-1.16.0/perf/cairo-perf-diff-files.c:115:12:  [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.
    static char const *utf_boxes[8] = {
data/cairo-1.16.0/perf/cairo-perf-graph-files.c:244:2:  [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[4096];
data/cairo-1.16.0/perf/cairo-perf-graph-files.c:319:2:  [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 *argv[5];
data/cairo-1.16.0/perf/cairo-perf-graph-files.c:321:2:  [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 (id, report->configuration, len);
data/cairo-1.16.0/perf/cairo-perf-graph-widget.c:236: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 buf[80];
data/cairo-1.16.0/perf/cairo-perf-report.c:157:26:  [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).
    report->size = end ? atoi (end) : 0;
data/cairo-1.16.0/perf/cairo-perf-report.c:362:7:  [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 (&base->samples[base->samples_count], t->samples,
data/cairo-1.16.0/perf/cairo-perf-report.c:411:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen (filename, "r");
data/cairo-1.16.0/perf/cairo-perf-trace.c:62:12:  [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.
    static char name[_MAX_FNAME + 1];
data/cairo-1.16.0/perf/cairo-perf-trace.c:400:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen (filename, "r");
data/cairo-1.16.0/perf/cairo-perf-trace.c:1040: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[1024];
data/cairo-1.16.0/perf/cairo-perf-trace.c:1043:7:  [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 (buf, dir, end-dir);
data/cairo-1.16.0/perf/micro/twin.c:13:14:  [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.
    unsigned char s[2] = {0, 0};
data/cairo-1.16.0/src/cairo-array.c:243: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 (dst, _cairo_array_index_const (array, index), array->element_size);
data/cairo-1.16.0/src/cairo-array.c:292: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 (dest, elements, num_elements * array->element_size);
data/cairo-1.16.0/src/cairo-base64-stream.c:48:14:  [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.
    unsigned char src[3];
data/cairo-1.16.0/src/cairo-base64-stream.c:51:8:  [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.
static char const base64_table[64] =
data/cairo-1.16.0/src/cairo-base64-stream.c:72:11:  [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.
	unsigned char dst[4];
data/cairo-1.16.0/src/cairo-base85-stream.c:44:14:  [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.
    unsigned char four_tuple[4];
data/cairo-1.16.0/src/cairo-base85-stream.c:49:38:  [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.
_expand_four_tuple_to_five (unsigned char four_tuple[4],
data/cairo-1.16.0/src/cairo-base85-stream.c:50:17:  [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.
			    unsigned char five_tuple[5],
data/cairo-1.16.0/src/cairo-base85-stream.c:75:14:  [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.
    unsigned char five_tuple[5];
data/cairo-1.16.0/src/cairo-base85-stream.c:98:14:  [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.
    unsigned char five_tuple[5];
data/cairo-1.16.0/src/cairo-bentley-ottmann-rectangular.c:102:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen (filename, "a");
data/cairo-1.16.0/src/cairo-bentley-ottmann.c:156:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen (filename, "a");
data/cairo-1.16.0/src/cairo-bentley-ottmann.c:187:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen (filename, "a");
data/cairo-1.16.0/src/cairo-bentley-ottmann.c:700:2:  [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 (new_elements, pq->elements_embedded,
data/cairo-1.16.0/src/cairo-bentley-ottmann.c:1081:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen ("bo-events.txt", "a");
data/cairo-1.16.0/src/cairo-bentley-ottmann.c:1849:2:  [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 (edges, _cairo_array_index (&intersected_edges, 0), num_edges * sizeof (cairo_bo_edge_t));
data/cairo-1.16.0/src/cairo-bentley-ottmann.c:1908:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (random_name, "random-%02d", num_random);
data/cairo-1.16.0/src/cairo-beos-surface.cpp:234:6:  [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 (&pixel, &data[4*i], sizeof (uint32_t));
data/cairo-1.16.0/src/cairo-beos-surface.cpp:289:6:  [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 (&out[4*i], &p, sizeof (uint32_t));
data/cairo-1.16.0/src/cairo-beos-surface.cpp:374:6:  [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(premultiplied, bits, bitmap->BytesPerRow() * height);
data/cairo-1.16.0/src/cairo-beos-surface.cpp:414:6:  [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->Bits(), surface->data, surface->height * surface->stride);
data/cairo-1.16.0/src/cairo-botor-scan-converter.c:827:2:  [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 (new_elements, pq->elements_embedded,
data/cairo-1.16.0/src/cairo-boxes-intersect.c:104:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen (filename, "a");
data/cairo-1.16.0/src/cairo-boxes-intersect.c:170:2:  [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 (new_elements, pq->elements_embedded,
data/cairo-1.16.0/src/cairo-cff-subset.c:298: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 buffer[100];
data/cairo-1.16.0/src/cairo-cff-subset.c:453:14:  [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.
    unsigned char buf[5];
data/cairo-1.16.0/src/cairo-cff-subset.c:554: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 (element.data, object, element.length);
data/cairo-1.16.0/src/cairo-cff-subset.c:624: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 (op->operand, operand, size);
data/cairo-1.16.0/src/cairo-cff-subset.c:723:9:  [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 (op->operand, operand, size);
data/cairo-1.16.0/src/cairo-cff-subset.c:877:9:  [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 (font->ps_name, p, len);
data/cairo-1.16.0/src/cairo-cff-subset.c:899:14:  [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.
    unsigned char buf[10];
data/cairo-1.16.0/src/cairo-cff-subset.c:994:14:  [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.
    unsigned char buf[100];
data/cairo-1.16.0/src/cairo-cff-subset.c:1154:14:  [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.
    unsigned char buf[20];
data/cairo-1.16.0/src/cairo-cff-subset.c:1339:14:  [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.
    unsigned char buf[30];
data/cairo-1.16.0/src/cairo-cff-subset.c:1382:14:  [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.
    unsigned char buf[100];
data/cairo-1.16.0/src/cairo-cff-subset.c:1856:14:  [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.
    unsigned char buf[100];
data/cairo-1.16.0/src/cairo-cff-subset.c:1997:14:  [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.
    unsigned char buf[10];
data/cairo-1.16.0/src/cairo-cff-subset.c:2006: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 (op_ptr, buf, buf_end - buf);
data/cairo-1.16.0/src/cairo-cff-subset.c:2045:14:  [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.
    unsigned char buf[10];
data/cairo-1.16.0/src/cairo-cff-subset.c:2082: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 (p, buf, offset_size);
data/cairo-1.16.0/src/cairo-cff-subset.c:2114:14:  [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.
    unsigned char buf[2];
data/cairo-1.16.0/src/cairo-cff-subset.c:2360:14:  [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.
    unsigned char buf[10];
data/cairo-1.16.0/src/cairo-cff-subset.c:2378: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 (p, buf, buf_end - buf);
data/cairo-1.16.0/src/cairo-cff-subset.c:2392:14:  [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.
    unsigned char buf[10];
data/cairo-1.16.0/src/cairo-cff-subset.c:2408:9:  [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 (p, buf, buf_end - buf);
data/cairo-1.16.0/src/cairo-cff-subset.c:2990: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 (cff_subset->data, data, length);
data/cairo-1.16.0/src/cairo-cff-subset.c:3228:14:  [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.
    unsigned char buf[40];
data/cairo-1.16.0/src/cairo-cff-subset.c:3402: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 (cff_subset->data, data, length);
data/cairo-1.16.0/src/cairo-clip.c:165:2:  [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 (copy->boxes, clip->boxes,
data/cairo-1.16.0/src/cairo-cogl-context.c:773:2:  [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 (backend, cr->base.base.backend, sizeof (cairo_backend_t));
data/cairo-1.16.0/src/cairo-cogl-context.c:774:2:  [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 (&cr->dev->backend_parent, cr->base.base.backend, sizeof (cairo_backend_t));
data/cairo-1.16.0/src/cairo-cogl-gradient.c:412:2:  [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 (gradient->stops_embedded, stops, sizeof (cairo_gradient_stop_t) * n_stops);
data/cairo-1.16.0/src/cairo-cogl-gradient.c:447: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 (&internal_stops[stop_offset], stops, sizeof (cairo_gradient_stop_t) * n_stops);
data/cairo-1.16.0/src/cairo-cogl-surface.c:873:7:  [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 (&tex_coords[4], tex_coords, sizeof (float) * 4);
data/cairo-1.16.0/src/cairo-damage.c:111: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 (damage->tail->base + damage->tail->count, boxes,
data/cairo-1.16.0/src/cairo-damage.c:139: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 (damage->tail->base, boxes + n,
data/cairo-1.16.0/src/cairo-damage.c:227:2:  [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 (b, chunk->base, chunk->count * sizeof (cairo_box_t));
data/cairo-1.16.0/src/cairo-debug.c:162:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen(fn, "wb");
data/cairo-1.16.0/src/cairo-deflate-stream.c:51:14:  [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.
    unsigned char          input_buf[BUFFER_SIZE];
data/cairo-1.16.0/src/cairo-deflate-stream.c:52:14:  [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.
    unsigned char          output_buf[BUFFER_SIZE];
data/cairo-1.16.0/src/cairo-deflate-stream.c:96:9:  [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 (stream->input_buf + stream->zlib_stream.avail_in, p, count);
data/cairo-1.16.0/src/cairo-font-face-twin.c:94: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.
  const char str[16];
data/cairo-1.16.0/src/cairo-ft-font.c:1068: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 (dstLine, srcLine, bytes);
data/cairo-1.16.0/src/cairo-ft-font.c:1094:17:  [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 (dstLine, srcLine, width);
data/cairo-1.16.0/src/cairo-ft-font.c:1182:6:  [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 (dstLine, srcLine, width * 4);
data/cairo-1.16.0/src/cairo-ft-font.c:1228: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, bitmap->buffer, stride * height);
data/cairo-1.16.0/src/cairo-ft-font.c:1236:7:  [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 (dest, source, bitmap->pitch);
data/cairo-1.16.0/src/cairo-ft-font.c:1281: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, bitmap->buffer, stride * height);
data/cairo-1.16.0/src/cairo-ft-font.c:1301:6:  [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, bitmap->buffer, stride * height);
data/cairo-1.16.0/src/cairo-ft-font.c:1356:6:  [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, bitmap->buffer, stride * height);
data/cairo-1.16.0/src/cairo-ft-font.c:2327:6:  [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 (coords, scaled_font->unscaled->variations, ft_mm_var->num_axis * sizeof (*coords));
data/cairo-1.16.0/src/cairo-ft-font.c:2332:6:  [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 (coords, instance->coords, ft_mm_var->num_axis * sizeof (*coords));
data/cairo-1.16.0/src/cairo-ft-font.c:2888: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 buffer[256]; /* PLRM spcifies max name length of 127 */
data/cairo-1.16.0/src/cairo-ft-font.c:3007:6:  [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 (buffer, face->stream->base + offset, *length);
data/cairo-1.16.0/src/cairo-gl-composite.c:327: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 (&ctx->operands[tex_unit], operand, sizeof (cairo_gl_operand_t));
data/cairo-1.16.0/src/cairo-gl-dispatch-private.h:46:11:  [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.
    const char *name[CAIRO_GL_DISPATCH_NAME_COUNT];
data/cairo-1.16.0/src/cairo-gl-dispatch.c:88:26:  [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.
	void *dispatch_ptr = &((char *) dispatch)[entry->offset];
data/cairo-1.16.0/src/cairo-gl-gradient.c:265: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 (gradient->stops_embedded, stops, n_stops * sizeof (cairo_gradient_stop_t));
data/cairo-1.16.0/src/cairo-gl-shaders.c:820: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 uniform_name[100];
data/cairo-1.16.0/src/cairo-gl-shaders.c:821:11:  [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.
    const char *unit_name[2] = { "source", "mask" };
data/cairo-1.16.0/src/cairo-gl-shaders.c:1069: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 (entry, &lookup, sizeof (cairo_shader_cache_entry_t));
data/cairo-1.16.0/src/cairo-gl-surface.c:321:2:  [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 (dst, src, width * cpp);
data/cairo-1.16.0/src/cairo-gl-surface.c:1270:6:  [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 (row, top, image->stride);
data/cairo-1.16.0/src/cairo-gl-surface.c:1271:6:  [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 (top, bot, image->stride);
data/cairo-1.16.0/src/cairo-gl-surface.c:1272:6:  [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 (bot, row, image->stride);
data/cairo-1.16.0/src/cairo-gstate.c:596:2:  [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 (dashes,
data/cairo-1.16.0/src/cairo-gstate.c:1177: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 (&style, &gstate->stroke_style, sizeof (gstate->stroke_style));
data/cairo-1.16.0/src/cairo-gstate.c:1665: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 (&style, &gstate->stroke_style, sizeof (gstate->stroke_style));
data/cairo-1.16.0/src/cairo-gstate.c:2241:6:  [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 (transformed_glyphs, glyphs,
data/cairo-1.16.0/src/cairo-gstate.c:2243:6:  [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 (transformed_clusters, clusters,
data/cairo-1.16.0/src/cairo-gstate.c:2300:6:  [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 (transformed_clusters, clusters,
data/cairo-1.16.0/src/cairo-gstate.c:2355:6:  [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 (transformed_clusters, clusters,
data/cairo-1.16.0/src/cairo-image-compositor.c:1661:2:  [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 (mask, row, len);
data/cairo-1.16.0/src/cairo-image-compositor.c:1715:6:  [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 (mask, row, r->u.mask.extents.width);
data/cairo-1.16.0/src/cairo-image-compositor.c:1921:7:  [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(d, s, len);
data/cairo-1.16.0/src/cairo-image-compositor.c:1951:4:  [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(dst, src, len);
data/cairo-1.16.0/src/cairo-image-compositor.c:2431:4:  [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(d, s, len*4);
data/cairo-1.16.0/src/cairo-image-compositor.c:2454:8:  [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(d, s, len * 4);
data/cairo-1.16.0/src/cairo-image-info.c:257:23:  [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.
static const unsigned char _png_magic[8] = { 137, 80, 78, 71, 13, 10, 26, 10 };
data/cairo-1.16.0/src/cairo-image-info.c:294:14:  [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.
    unsigned char end_seq[2];
data/cairo-1.16.0/src/cairo-image-surface.c:794:2:  [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 (clone->data, image->data, clone->stride * clone->height);
data/cairo-1.16.0/src/cairo-mesh-pattern-rasterizer.c:502:34:  [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.
rasterize_bezier_curve (unsigned char *data, int width, int height, int stride,
data/cairo-1.16.0/src/cairo-mesh-pattern-rasterizer.c:576:29:  [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.
draw_bezier_curve (unsigned char *data, int width, int height, int stride,
data/cairo-1.16.0/src/cairo-mesh-pattern-rasterizer.c:696:34:  [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.
rasterize_bezier_patch (unsigned char *data, int width, int height, int stride, int vshift,
data/cairo-1.16.0/src/cairo-mesh-pattern-rasterizer.c:792:29:  [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.
draw_bezier_patch (unsigned char *data, int width, int height, int stride,
data/cairo-1.16.0/src/cairo-misc.c:835: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 buf[100];
data/cairo-1.16.0/src/cairo-misc.c:936:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    result = fopen (filename, mode);
data/cairo-1.16.0/src/cairo-misc.c:1077:6:  [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 (istring->string, str, len);
data/cairo-1.16.0/src/cairo-mono-scan-converter.c:553:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *file = fopen ("polygon.txt", "w");
data/cairo-1.16.0/src/cairo-mutex-type-private.h:91:7:  [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 (&(mutex), &_tmp_mutex, sizeof (_tmp_mutex));	\
data/cairo-1.16.0/src/cairo-os2-surface.c:1357:9:  [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 (&(local_os2_surface->rcl_dirty_area), &rclToBlit, sizeof (RECTL));
data/cairo-1.16.0/src/cairo-output-stream.c:277: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 buffer[2];
data/cairo-1.16.0/src/cairo-output-stream.c:401: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 buffer[512], single_fmt[SINGLE_FMT_BUFFER_SIZE];
data/cairo-1.16.0/src/cairo-output-stream.c:452:2:  [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 (single_fmt, start, single_fmt_length);
data/cairo-1.16.0/src/cairo-output-stream.c:758: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 (*data_out, _cairo_array_index (&stream->array, 0), *length_out);
data/cairo-1.16.0/src/cairo-path-fixed.c:135: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 (path->buf.op, other->buf.base.op,
data/cairo-1.16.0/src/cairo-path-fixed.c:137: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 (path->buf.points, other->buf.points,
data/cairo-1.16.0/src/cairo-path-fixed.c:160:6:  [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 (buf->op + buf->num_ops, other_buf->op,
data/cairo-1.16.0/src/cairo-path-fixed.c:164:6:  [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 (buf->points + buf->num_points, other_buf->points,
data/cairo-1.16.0/src/cairo-path-fixed.c:717:2:  [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[1024];
data/cairo-1.16.0/src/cairo-path-fixed.c:803: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 (buf->points + buf->num_points,
data/cairo-1.16.0/src/cairo-path-stroke-boxes.c:178:6:  [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 (new_segments, stroker->segments,
data/cairo-1.16.0/src/cairo-path-stroke-polygon.c:952:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    FILE *file = fopen ("contours.txt", "a");
data/cairo-1.16.0/src/cairo-path-stroke-polygon.c:970:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE *file = fopen ("contours.txt", "a");
data/cairo-1.16.0/src/cairo-path-stroke-polygon.c:1221:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    FILE *file = fopen ("contours.txt", "a");
data/cairo-1.16.0/src/cairo-path-stroke-polygon.c:1357:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *file = fopen ("polygons.txt", "a");
data/cairo-1.16.0/src/cairo-pattern.c:276:2:  [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 (pattern->stops, other->stops,
data/cairo-1.16.0/src/cairo-pattern.c:396: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 (pattern, other, size);
data/cairo-1.16.0/src/cairo-pattern.c:1687:6:  [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 (new_stops, pattern->stops, old_size * sizeof (cairo_gradient_stop_t));
data/cairo-1.16.0/src/cairo-pdf-interchange.c:837:2:  [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 (s, label, i);
data/cairo-1.16.0/src/cairo-pdf-interchange.c:1412: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 buf[50];
data/cairo-1.16.0/src/cairo-pdf-interchange.c:1619: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 buf[40];
data/cairo-1.16.0/src/cairo-pdf-operators.c:644:6:  [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 (dash, style->dash, num_dashes * sizeof (double));
data/cairo-1.16.0/src/cairo-pdf-operators.c:645:6:  [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 (dash + num_dashes, style->dash, num_dashes * sizeof (double));
data/cairo-1.16.0/src/cairo-pdf-operators.c:659:7:  [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 (dash, style->dash, num_dashes * sizeof (double));
data/cairo-1.16.0/src/cairo-pdf-operators.c:681:7:  [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 (dash, last_two, sizeof (last_two));
data/cairo-1.16.0/src/cairo-pdf-surface.c:206:14:  [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.
static const char * _cairo_pdf_version_strings[CAIRO_PDF_VERSION_LAST] =
data/cairo-1.16.0/src/cairo-pdf-surface.c:1587:6:  [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 (unique_id, surface_key.unique_id, unique_id_length);
data/cairo-1.16.0/src/cairo-pdf-surface.c:2674: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 smask_buf[30];
data/cairo-1.16.0/src/cairo-pdf-surface.c:2882: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 (global.id, global_id, global_id_length);
data/cairo-1.16.0/src/cairo-pdf-surface.c:2915: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 smask_buf[30];
data/cairo-1.16.0/src/cairo-pdf-surface.c:2916: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 decode_parms_buf[100];
data/cairo-1.16.0/src/cairo-pdf-surface.c:3023: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 smask_buf[30];
data/cairo-1.16.0/src/cairo-pdf-surface.c:3104: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 smask_buf[30];
data/cairo-1.16.0/src/cairo-pdf-surface.c:3204: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 buf[300];
data/cairo-1.16.0/src/cairo-pdf-surface.c:3222: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 (params, ccitt_params_string, ccitt_params_string_len);
data/cairo-1.16.0/src/cairo-pdf-surface.c:3539: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 draw_surface[50];
data/cairo-1.16.0/src/cairo-pdf-surface.c:3540: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 draw_surface2[200];
data/cairo-1.16.0/src/cairo-pdf-surface.c:3810: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 (&elem.color1[0], &stop1->color[0], sizeof (double)*3);
data/cairo-1.16.0/src/cairo-pdf-surface.c:3811: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 (&elem.color2[0], &stop2->color[0], sizeof (double)*3);
data/cairo-1.16.0/src/cairo-pdf-surface.c:3995: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 (allstops, stops, sizeof (cairo_pdf_color_stop_t));
data/cairo-1.16.0/src/cairo-pdf-surface.c:4005: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 (&stops[n_stops],
data/cairo-1.16.0/src/cairo-pdf-surface.c:4172: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 buf[100];
data/cairo-1.16.0/src/cairo-pdf-surface.c:5189:2:  [2] (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). Risk is low because the source is a constant string.
	strcpy (str, "<FEFF");
data/cairo-1.16.0/src/cairo-pdf-surface.c:5445: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 tag[10];
data/cairo-1.16.0/src/cairo-pdf-surface.c:5639: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[64];
data/cairo-1.16.0/src/cairo-pdf-surface.c:5660: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[64];
data/cairo-1.16.0/src/cairo-pdf-surface.c:5690: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 tag[10];
data/cairo-1.16.0/src/cairo-pdf-surface.c:5828: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[64];
data/cairo-1.16.0/src/cairo-pdf-surface.c:5852: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[64];
data/cairo-1.16.0/src/cairo-pdf-surface.c:5880: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 tag[10];
data/cairo-1.16.0/src/cairo-pdf-surface.c:6488: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 buffer[11];
data/cairo-1.16.0/src/cairo-pdf-surface.c:8343:6:  [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 (group->utf8, utf8, utf8_len);
data/cairo-1.16.0/src/cairo-pdf-surface.c:8354:6:  [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 (group->glyphs, glyphs, sizeof (cairo_glyph_t) * num_glyphs);
data/cairo-1.16.0/src/cairo-pdf-surface.c:8365:6:  [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 (group->clusters, clusters, sizeof (cairo_text_cluster_t) * num_clusters);
data/cairo-1.16.0/src/cairo-pen.c:131:2:  [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 (pen->vertices, other->vertices,
data/cairo-1.16.0/src/cairo-pen.c:160:6:  [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 (vertices, pen->vertices,
data/cairo-1.16.0/src/cairo-png.c:95:2:  [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 (&pixel, b, sizeof (uint32_t));
data/cairo-1.16.0/src/cairo-png.c:118:2:  [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 (&pixel, b, sizeof (uint32_t));
data/cairo-1.16.0/src/cairo-png.c:485:2:  [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 (base, &p, sizeof (uint32_t));
data/cairo-1.16.0/src/cairo-png.c:503:2:  [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 (base, &pixel, sizeof (uint32_t));
data/cairo-1.16.0/src/cairo-polygon-intersect.c:761:2:  [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 (new_elements, pq->elements_embedded,
data/cairo-1.16.0/src/cairo-polygon-intersect.c:1394:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *file = fopen ("clip_a.txt", "w");
data/cairo-1.16.0/src/cairo-polygon-intersect.c:1399:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *file = fopen ("clip_b.txt", "w");
data/cairo-1.16.0/src/cairo-polygon-intersect.c:1412:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *file = fopen ("clip_result.txt", "w");
data/cairo-1.16.0/src/cairo-polygon-reduce.c:830:2:  [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 (new_elements, pq->elements_embedded,
data/cairo-1.16.0/src/cairo-polygon-reduce.c:1386:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *file = fopen ("reduce_in.txt", "w");
data/cairo-1.16.0/src/cairo-polygon-reduce.c:1432:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *file = fopen ("reduce_out.txt", "w");
data/cairo-1.16.0/src/cairo-polygon.c:270:6:  [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 (new_edges, polygon->edges, old_size * sizeof (cairo_edge_t));
data/cairo-1.16.0/src/cairo-ps-surface-private.h:75:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    FILE *tmpfile;
data/cairo-1.16.0/src/cairo-ps-surface.c:207:14:  [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.
static const char * _cairo_ps_level_strings[CAIRO_PS_LEVEL_LAST] =
data/cairo-1.16.0/src/cairo-ps-surface.c:292: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 ctime_buf[26];
data/cairo-1.16.0/src/cairo-ps-surface.c:522: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[64];
data/cairo-1.16.0/src/cairo-ps-surface.c:558: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[64];
data/cairo-1.16.0/src/cairo-ps-surface.c:970: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    buf[4096];
data/cairo-1.16.0/src/cairo-ps-surface.c:973:26:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if (ferror (surface->tmpfile) != 0)
data/cairo-1.16.0/src/cairo-ps-surface.c:976:22:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    rewind (surface->tmpfile);
data/cairo-1.16.0/src/cairo-ps-surface.c:977:55:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    while ((n = fread (buf, 1, sizeof (buf), surface->tmpfile)) > 0)
data/cairo-1.16.0/src/cairo-ps-surface.c:980:26:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if (ferror (surface->tmpfile) != 0)
data/cairo-1.16.0/src/cairo-ps-surface.c:1079: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 buf[50];
data/cairo-1.16.0/src/cairo-ps-surface.c:1156:24:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    surface->tmpfile = tmpfile ();
data/cairo-1.16.0/src/cairo-ps-surface.c:1169:70:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    surface->stream = _cairo_output_stream_create_for_file (surface->tmpfile);
data/cairo-1.16.0/src/cairo-ps-surface.c:1245:22:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    fclose (surface->tmpfile);
data/cairo-1.16.0/src/cairo-ps-surface.c:1795:22:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    fclose (surface->tmpfile);
data/cairo-1.16.0/src/cairo-ps-surface.c:3089: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 (ccitt_params_string, ccitt_params_data, ccitt_params_data_len);
data/cairo-1.16.0/src/cairo-ps-surface.c:3274: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 (params_string, eps_params_string, eps_params_string_len);
data/cairo-1.16.0/src/cairo-ps-surface.c:3539: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 (unique_id, source_key.unique_id, unique_id_length);
data/cairo-1.16.0/src/cairo-ps-surface.c:4333: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 (allstops, stops, sizeof (cairo_ps_color_stop_t));
data/cairo-1.16.0/src/cairo-ps-surface.c:4343: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 (&stops[n_stops],
data/cairo-1.16.0/src/cairo-quartz-font.c:224:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (full_name, " Bold");
data/cairo-1.16.0/src/cairo-quartz-font.c:229:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (full_name, " Italic");
data/cairo-1.16.0/src/cairo-quartz-font.c:231:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (full_name, " Oblique");
data/cairo-1.16.0/src/cairo-quartz-surface.c:2553:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (sptr, "/Users/vladimir/Desktop/bar%d.png", sctr);
data/cairo-1.16.0/src/cairo-quartz-surface.c:2574:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (sptr, "/Users/vladimir/Desktop/foo%d.png", sctr);
data/cairo-1.16.0/src/cairo-raster-source-pattern.c:102: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(pattern, other, sizeof (cairo_raster_source_pattern_t));
data/cairo-1.16.0/src/cairo-recording-surface.c:1042:2:  [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 (command->utf8, utf8, utf8_len);
data/cairo-1.16.0/src/cairo-recording-surface.c:1050:2:  [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 (command->glyphs, glyphs, sizeof (glyphs[0]) * num_glyphs);
data/cairo-1.16.0/src/cairo-recording-surface.c:1058:2:  [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 (command->clusters, clusters, sizeof (clusters[0]) * num_clusters);
data/cairo-1.16.0/src/cairo-recording-surface.c:1392:2:  [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 (command->utf8, src->show_text_glyphs.utf8, command->utf8_len);
data/cairo-1.16.0/src/cairo-recording-surface.c:1401:2:  [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 (command->glyphs, src->show_text_glyphs.glyphs,
data/cairo-1.16.0/src/cairo-recording-surface.c:1411:2:  [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 (command->clusters, src->show_text_glyphs.clusters,
data/cairo-1.16.0/src/cairo-rectangular-scan-converter.c:142:2:  [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 (new_elements, pq->elements_embedded,
data/cairo-1.16.0/src/cairo-scaled-font-subsets.c:83: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 latin_char_map[256];
data/cairo-1.16.0/src/cairo-scaled-font-subsets.c:380: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 buf[8];
data/cairo-1.16.0/src/cairo-scaled-font-subsets.c:411:6:  [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 (*utf8_out, buf, len);
data/cairo-1.16.0/src/cairo-scaled-font-subsets.c:448:6:  [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 (sub_font_glyph->utf8, utf8, utf8_len);
data/cairo-1.16.0/src/cairo-scaled-font-subsets.c:619:7:  [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 (font_utf8, text_utf8, text_utf8_len);
data/cairo-1.16.0/src/cairo-scaled-font-subsets.c:1130: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 buf[10];
data/cairo-1.16.0/src/cairo-scaled-font-subsets.c:1144: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(buf, glyph->utf8, glyph->utf8_len);
data/cairo-1.16.0/src/cairo-scaled-font-subsets.c:1242: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 buf[30];
data/cairo-1.16.0/src/cairo-scaled-font-subsets.c:1358:2:  [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[128]; /* max name length is 127 bytes */
data/cairo-1.16.0/src/cairo-script-surface.c:813:2:  [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 (surface->cr.current_style.dash, dash,
data/cairo-1.16.0/src/cairo-script-surface.c:3276: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[4] = { '\\' };
data/cairo-1.16.0/src/cairo-spans-compositor-private.h:49: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 data[4096];
data/cairo-1.16.0/src/cairo-spans-private.h:135: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 buf[CAIRO_STACK_BUFFER_SIZE];
data/cairo-1.16.0/src/cairo-spans-private.h:162: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 buf[CAIRO_STACK_BUFFER_SIZE];
data/cairo-1.16.0/src/cairo-stroke-style.c:77:2:  [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 (style->dash, other->dash,
data/cairo-1.16.0/src/cairo-surface-observer.c:1174: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 (dev_glyphs, glyphs, num_glyphs * sizeof (cairo_glyph_t));
data/cairo-1.16.0/src/cairo-surface-offset.c:279: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 (dev_glyphs, glyphs, sizeof (cairo_glyph_t) * num_glyphs);
data/cairo-1.16.0/src/cairo-surface-wrapper.c:485:2:  [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 (dev_glyphs, glyphs, sizeof (cairo_glyph_t) * num_glyphs);
data/cairo-1.16.0/src/cairo-surface.c:1202:39:  [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.
	if (slots[i].key != NULL && strcmp ((char *) slots[i].key, mime_type) == 0) {
data/cairo-1.16.0/src/cairo-surface.c:1256:16:  [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.
		if (strcmp ((char *) slots[i].key, _cairo_surface_image_mime_types[j]) == 0)
data/cairo-1.16.0/src/cairo-svg-surface.c:113:14:  [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.
static const char * _cairo_svg_version_strings[CAIRO_SVG_VERSION_LAST] =
data/cairo-1.16.0/src/cairo-svg-surface.c:119:14:  [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.
static const char * _cairo_svg_internal_version_strings[CAIRO_SVG_VERSION_LAST] =
data/cairo-1.16.0/src/cairo-svg-surface.c:551:2:  [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 (unique_id, source_key.unique_id, unique_id_length);
data/cairo-1.16.0/src/cairo-svg-surface.c:1237:14:  [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.
    unsigned char src[3];
data/cairo-1.16.0/src/cairo-svg-surface.c:1240:8:  [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.
static char const base64_table[64] =
data/cairo-1.16.0/src/cairo-svg-surface.c:1263:11:  [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.
	unsigned char dst[4];
data/cairo-1.16.0/src/cairo-svg-surface.c:2583: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 buffer[64];
data/cairo-1.16.0/src/cairo-tag-attributes.c:348: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 (name, p, len);
data/cairo-1.16.0/src/cairo-tee-surface.c:362:2:  [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 (glyphs_copy, glyphs, sizeof (cairo_glyph_t) * num_glyphs);
data/cairo-1.16.0/src/cairo-tee-surface.c:375: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 (glyphs_copy, glyphs, sizeof (cairo_glyph_t) * num_glyphs);
data/cairo-1.16.0/src/cairo-tor-scan-converter.c:311: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 sentinel[SIZEOF_POOL_CHUNK];
data/cairo-1.16.0/src/cairo-tor-scan-converter.c:1836:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *file = fopen ("polygon.txt", "w");
data/cairo-1.16.0/src/cairo-tor22-scan-converter.c:1646:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *file = fopen ("polygon.txt", "w");
data/cairo-1.16.0/src/cairo-traps.c:134:6:  [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 (new_traps, traps->traps, sizeof (traps->traps_embedded));
data/cairo-1.16.0/src/cairo-tristrip.c:98:6:  [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 (points, strip->points, sizeof (strip->points_embedded));
data/cairo-1.16.0/src/cairo-truetype-subset.c:1204:2:  [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 (truetype_subset->data, data, length);
data/cairo-1.16.0/src/cairo-truetype-subset.c:1217:2:  [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 (truetype_subset->string_offsets, string_offsets, offsets_length);
data/cairo-1.16.0/src/cairo-truetype-subset.c:1275: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 buf[4];
data/cairo-1.16.0/src/cairo-truetype-subset.c:1385: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 buf[4];
data/cairo-1.16.0/src/cairo-truetype-subset.c:1469:6:  [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 (str,
data/cairo-1.16.0/src/cairo-truetype-subset.c:1531:2:  [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 (p, str + 7, len - 7);
data/cairo-1.16.0/src/cairo-type1-fallback.c:152:14:  [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.
    unsigned char buf[5];
data/cairo-1.16.0/src/cairo-type1-fallback.c:179:14:  [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.
    unsigned char buf[10];
data/cairo-1.16.0/src/cairo-type1-fallback.c:491:11:  [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.
    const char spaces[50] = "                                                  ";
data/cairo-1.16.0/src/cairo-type1-fallback.c:554:18:  [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.
    static const char hex_digits[16] = "0123456789abcdef";
data/cairo-1.16.0/src/cairo-type1-fallback.c:555: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 digits[3];
data/cairo-1.16.0/src/cairo-type1-fallback.c:641:18:  [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.
    static const char zeros[65] =
data/cairo-1.16.0/src/cairo-type1-fallback.c:768: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 (type1_subset->data,
data/cairo-1.16.0/src/cairo-type1-subset.c:584:18:  [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.
    static const char hex_digits[16] = "0123456789abcdef";
data/cairo-1.16.0/src/cairo-type1-subset.c:585: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 digits[3];
data/cairo-1.16.0/src/cairo-type1-subset.c:978: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 buffer[256];
data/cairo-1.16.0/src/cairo-type1-subset.c:1126: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 buffer[256];
data/cairo-1.16.0/src/cairo-type1-subset.c:1255: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 buffer[32], *lenIV_str, *subr_count_end, *glyph_count_end;
data/cairo-1.16.0/src/cairo-type1-subset.c:1513:18:  [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.
    static const char zeros[65] =
data/cairo-1.16.0/src/cairo-type1-subset.c:1721: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 buf[30];
data/cairo-1.16.0/src/cairo-type1-subset.c:1775: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 (type1_subset->data,
data/cairo-1.16.0/src/cairo-type1-subset.c:1807:14:  [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.
    unsigned char buf[64];
data/cairo-1.16.0/src/cairo-unicode.c:106:14:  [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.
static const char utf8_skip_data[256] = {
data/cairo-1.16.0/src/cairo-unicode.c:173:22:  [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.
	    if ((((unsigned char *)p)[i] & 0xc0) != 0x80)
data/cairo-1.16.0/src/cairo-unicode.c:180:27:  [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.
	uint32_t ch = ((unsigned char *)p)[i];
data/cairo-1.16.0/src/cairo-xcb-surface-render.c:848: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 buf[CAIRO_STACK_BUFFER_SIZE];
data/cairo-1.16.0/src/cairo-xcb-surface-render.c:922: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 buf[CAIRO_STACK_BUFFER_SIZE];
data/cairo-1.16.0/src/cairo-xlib-source.c:339: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 buf[CAIRO_STACK_BUFFER_SIZE];
data/cairo-1.16.0/src/cairo-xlib-source.c:671:6:  [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 (&xtransform, &identity, sizeof (identity));
data/cairo-1.16.0/src/cairo-xlib-source.c:800:6:  [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 (&xtransform, &identity, sizeof (identity));
data/cairo-1.16.0/src/cairo-xlib-surface.c:97: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 buf[2048];
data/cairo-1.16.0/src/cairo-xlib-visual.c:78:14:  [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.
    unsigned char  gray_to_pseudocolor[RAMP_SIZE];
data/cairo-1.16.0/src/cairo-xml-surface.c:286: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 indent[80];
data/cairo-1.16.0/src/cairo-xml-surface.c:303: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 indent[80];
data/cairo-1.16.0/src/cairoint.h:101:9:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
#define tmpfile() _cairo_win32_tmpfile()
data/cairo-1.16.0/src/drm/cairo-drm-bo.c:45:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    struct drm_gem_open open;
data/cairo-1.16.0/src/drm/cairo-drm-bo.c:48:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    open.name = name;
data/cairo-1.16.0/src/drm/cairo-drm-bo.c:49:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    open.handle = 0;
data/cairo-1.16.0/src/drm/cairo-drm-bo.c:50:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    open.size = 0;
data/cairo-1.16.0/src/drm/cairo-drm-bo.c:52:45:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	ret = ioctl (dev->fd, DRM_IOCTL_GEM_OPEN, &open);
data/cairo-1.16.0/src/drm/cairo-drm-bo.c:61:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    bo->size = open.size;
data/cairo-1.16.0/src/drm/cairo-drm-bo.c:62:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    bo->handle = open.handle;
data/cairo-1.16.0/src/drm/cairo-drm-gallium-surface.c:752: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 buf[4096];
data/cairo-1.16.0/src/drm/cairo-drm-i915-shader.c:196:6:  [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 (dst, data, size);
data/cairo-1.16.0/src/drm/cairo-drm-i915-shader.c:200: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 (dst, data, width);
data/cairo-1.16.0/src/drm/cairo-drm-i915-shader.c:209:6:  [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 (dst, data, size);
data/cairo-1.16.0/src/drm/cairo-drm-i915-shader.c:214: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 (dst, data, size);
data/cairo-1.16.0/src/drm/cairo-drm-i915-shader.c:223:6:  [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 (dst, data, size);
data/cairo-1.16.0/src/drm/cairo-drm-i915-shader.c:228: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 (dst, data, size);
data/cairo-1.16.0/src/drm/cairo-drm-i915-shader.c:1951:2:  [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 (device->current_maps, maps, m * sizeof (uint32_t));
data/cairo-1.16.0/src/drm/cairo-drm-i915-shader.c:2059:2:  [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 (device->current_samplers, samplers, s * sizeof (uint32_t));
data/cairo-1.16.0/src/drm/cairo-drm-i915-shader.c:2181: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 (device->current_constants, constants, n_constants*4);
data/cairo-1.16.0/src/drm/cairo-drm-i915-surface.c:526:2:  [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 (BATCH_PTR (device), device->vbo_base, device->vbo_used);
data/cairo-1.16.0/src/drm/cairo-drm-i915-surface.c:2909: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 (device->batch_header, i915_batch_setup, sizeof (i915_batch_setup));
data/cairo-1.16.0/src/drm/cairo-drm-i965-private.h:549: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 (stream->data + offset, data, size);
data/cairo-1.16.0/src/drm/cairo-drm-i965-shader.c:886:2:  [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 (shader->constants + shader->constants_size,
data/cairo-1.16.0/src/drm/cairo-drm-i965-shader.c:2550:2:  [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 (device->constants, shader->constants, size);
data/cairo-1.16.0/src/drm/cairo-drm-i965-shader.c:2796:2:  [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 (device->vertex.data + device->vertex.used, ptr, size);
data/cairo-1.16.0/src/drm/cairo-drm-i965-surface.c:578: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 (device->batch.relocations + device->batch.num_relocations,
data/cairo-1.16.0/src/drm/cairo-drm-intel-brw-eu-emit.c:357: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(insn, p->current, sizeof(*insn));
data/cairo-1.16.0/src/drm/cairo-drm-intel-brw-eu.c:92: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(p->current+1, p->current, sizeof(struct brw_instruction));
data/cairo-1.16.0/src/drm/cairo-drm-intel-brw-structs.h:559:15:  [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.
	    unsigned char ub[4];
data/cairo-1.16.0/src/drm/cairo-drm-intel.c:600:6:  [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 (dst, a8, width);
data/cairo-1.16.0/src/drm/cairo-drm-intel.c:666:6:  [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 (dst, data, size);
data/cairo-1.16.0/src/drm/cairo-drm-intel.c:858:6:  [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 (dst, a8, width);
data/cairo-1.16.0/src/drm/cairo-drm-intel.c:872:6:  [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 (dst, src, width);
data/cairo-1.16.0/src/drm/cairo-drm-intel.c:882:6:  [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 (dst, src, width);
data/cairo-1.16.0/src/drm/cairo-drm-radeon.c:89:6:  [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 (ptr + offset, data, size);
data/cairo-1.16.0/src/drm/cairo-drm-radeon.c:120:6:  [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, ptr + offset, size);
data/cairo-1.16.0/src/drm/cairo-drm.c:237:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open (path, O_RDWR);
data/cairo-1.16.0/src/win32/cairo-win32-display-surface.c:688: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 stack[512];
data/cairo-1.16.0/src/win32/cairo-win32-font.c:575: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 (logfont.lfFaceName, face_name, sizeof (uint16_t) * face_name_len);
data/cairo-1.16.0/src/win32/cairo-win32-font.c:862:5:  [2] (buffer) wchar_t:
  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.
    wchar_t unicode[2];
data/cairo-1.16.0/src/win32/cairo-win32-printing-surface.c:1750: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 (unicode_glyphs, glyphs, num_glyphs * sizeof (cairo_glyph_t));
data/cairo-1.16.0/test/a1-mask.c:38:17:  [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.
static unsigned char mask[(MASK_WIDTH + 7) / 8 * MASK_HEIGHT] = {
data/cairo-1.16.0/test/a1-mask.c:123:6:  [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 (dst, src, (MASK_WIDTH + 7) / 8);
data/cairo-1.16.0/test/a8-mask.c:32:17:  [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.
static unsigned char mask[MASK_WIDTH * MASK_HEIGHT] = {
data/cairo-1.16.0/test/a8-mask.c:118:2:  [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 (dst, src, MASK_WIDTH);
data/cairo-1.16.0/test/any2ppm.c:145:2:  [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 (buf + buflen, src, len);
data/cairo-1.16.0/test/any2ppm.c:164: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 buf[4096];
data/cairo-1.16.0/test/any2ppm.c:221:12:  [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.
		unsigned char rgb[3];
data/cairo-1.16.0/test/any2ppm.c:665: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 buf[80];
data/cairo-1.16.0/test/any2ppm.c:672:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open (SOCKET_PATH ".pid", O_RDONLY);
data/cairo-1.16.0/test/any2ppm.c:680:8:  [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).
	pid = atoi (buf);
data/cairo-1.16.0/test/any2ppm.c:691: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 buf[80];
data/cairo-1.16.0/test/any2ppm.c:694:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open (SOCKET_PATH ".pid", O_CREAT | O_TRUNC | O_WRONLY, 0666);
data/cairo-1.16.0/test/any2ppm.c:698:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    ret = sprintf (buf, "%d\n", getpid ());
data/cairo-1.16.0/test/any2ppm.c:713:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    got_fd = open("/dev/null", flags | O_CREAT, 0700);
data/cairo-1.16.0/test/any2ppm.c:817:12:  [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).
	timeout = atoi (getenv ("ANY2PPM_TIMEOUT"));
data/cairo-1.16.0/test/any2ppm.c:830: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 *argv[10];
data/cairo-1.16.0/test/any2ppm.c:837:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			FILE *file = fopen (".any2ppm.errors", "a");
data/cairo-1.16.0/test/cairo-test-runner.c:167: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 buf[1024];
data/cairo-1.16.0/test/cairo-test-runner.c:169:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf (buf, "/proc/%d/exe", getppid ());
data/cairo-1.16.0/test/cairo-test-runner.c:287: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 ((*argv)[i], old_argv[i], len);
data/cairo-1.16.0/test/cairo-test-runner.c:298:7:  [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 ((*argv)[i], s, len);
data/cairo-1.16.0/test/cairo-test-runner.c:313: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 ((*argv)[i], s, len);
data/cairo-1.16.0/test/cairo-test-runner.c:704: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 targets[4096];
data/cairo-1.16.0/test/cairo-test-runner.c:750:22:  [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).
	runner.force_pass = atoi (env);
data/cairo-1.16.0/test/cairo-test-trace.c:1181: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/cairo-1.16.0/test/cairo-test-trace.c:1499:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen (filename, "r");
data/cairo-1.16.0/test/cairo-test.c:162:24:  [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).
	ctx->malloc_failure = atoi (getenv ("CAIRO_TEST_MALLOC_FAILURE"));
data/cairo-1.16.0/test/cairo-test.c:169:17:  [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).
	ctx->timeout = atoi (getenv ("CAIRO_TEST_TIMEOUT"));
data/cairo-1.16.0/test/cairo-test.c:174:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    ctx->log_file = fopen (log_name, "a");
data/cairo-1.16.0/test/cairo-test.c:566:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    test = fopen (test_filename, "rb");
data/cairo-1.16.0/test/cairo-test.c:570:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    pass = fopen (pass_filename, "rb");
data/cairo-1.16.0/test/cairo-test.c:604:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    src = fopen (src_filename, "rb");
data/cairo-1.16.0/test/cairo-test.c:608:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    dst = fopen (dst_filename, "wb");
data/cairo-1.16.0/test/create-for-stream.c:91: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 buffer[MAX_OUTPUT_SIZE];
data/cairo-1.16.0/test/create-for-stream.c:117: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 (&wc->buffer[wc->index], data, length);
data/cairo-1.16.0/test/create-for-stream.c:144: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 file_contents[MAX_OUTPUT_SIZE];
data/cairo-1.16.0/test/create-for-stream.c:211:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen (filename, "r");
data/cairo-1.16.0/test/create-from-broken-png-stream.c:47: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 (data, &broken_png_data[*offset], length);
data/cairo-1.16.0/test/create-from-png-stream.c:60:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen (filename, "rb");
data/cairo-1.16.0/test/imagediff.c:151:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	png_file = fopen (filename, "wb");
data/cairo-1.16.0/test/mime-data.c:43:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen (filename, "rb");
data/cairo-1.16.0/test/mime-data.c:45:2:  [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 path[4096];
data/cairo-1.16.0/test/mime-data.c:53:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen (path, "rb");
data/cairo-1.16.0/test/mime-unique-id.c:120:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen (jpeg_filename, "rb");
data/cairo-1.16.0/test/mime-unique-id.c:375:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen (filename, "rb");
data/cairo-1.16.0/test/pdf-mime-data.c:52:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen (file, "rb");
data/cairo-1.16.0/test/pdf-mime-data.c:54:2:  [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 filename[4096];
data/cairo-1.16.0/test/pdf-mime-data.c:59:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen (filename, "rb");
data/cairo-1.16.0/test/pdf-mime-data.c:107: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 command[4096];
data/cairo-1.16.0/test/pdf-tagged-text.c:103:8:  [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.
static char *paragraph_text[MAX_PARAGRAPH_LINES];
data/cairo-1.16.0/test/pdf-tagged-text.c:139:6:  [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 (s, begin, len);
data/cairo-1.16.0/test/pdf-tagged-text.c:171: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 buf[100];
data/cairo-1.16.0/test/pdf-tagged-text.c:178:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (buf + strlen(buf), "%d", num);
data/cairo-1.16.0/test/pdf-tagged-text.c:192: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 buf[100];
data/cairo-1.16.0/test/pdf-tagged-text.c:231: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 buf[100];
data/cairo-1.16.0/test/pdf-tagged-text.c:232: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 buf2[100];
data/cairo-1.16.0/test/pdiff/args.c:96:31:  [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).
		    args->ThresholdPixels = atoi(argv[i + 1]);
data/cairo-1.16.0/test/pdiff/lpyramid.c:88:6:  [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 (pyramid->levels[i], image, width * height * sizeof (float));
data/cairo-1.16.0/test/ps-eps.c:199: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 buf[256];
data/cairo-1.16.0/test/ps-eps.c:205:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen (filename, "r");
data/cairo-1.16.0/test/ps-features.c:95: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 dsc[255];
data/cairo-1.16.0/test/pthread-show-text.c:75:2:  [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[2];
data/cairo-1.16.0/test/recordflip.c:399: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 (tmp, row + bpp * x, bpp);
data/cairo-1.16.0/test/recordflip.c:400: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 (row + bpp * x, row + bpp * (width - x - 1), bpp);
data/cairo-1.16.0/test/recordflip.c:401: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 (row + bpp * (width - x - 1), tmp, bpp);
data/cairo-1.16.0/test/recordflip.c:406:6:  [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 (tmp, data + y * stride, stride);
data/cairo-1.16.0/test/recordflip.c:407:6:  [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 + y * stride, data + (height - y - 1) * stride, stride);
data/cairo-1.16.0/test/recordflip.c:408:6:  [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 + (height - y - 1) * stride, tmp, stride);
data/cairo-1.16.0/test/recordflip.c:484: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 (tmp, row + bpp * x, bpp);
data/cairo-1.16.0/test/recordflip.c:485: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 (row + bpp * x, row + bpp * (width - x - 1), bpp);
data/cairo-1.16.0/test/recordflip.c:486: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 (row + bpp * (width - x - 1), tmp, bpp);
data/cairo-1.16.0/test/recordflip.c:491:6:  [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 (tmp, data + y * stride, stride);
data/cairo-1.16.0/test/recordflip.c:492:6:  [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 + y * stride, data + (height - y - 1) * stride, stride);
data/cairo-1.16.0/test/recordflip.c:493:6:  [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 + (height - y - 1) * stride, tmp, stride);
data/cairo-1.16.0/test/subsurface-scale.c:47:2:  [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[2] = { text[i], '\0' };
data/cairo-1.16.0/test/subsurface.c:42:2:  [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[2] = { text[i], '\0' };
data/cairo-1.16.0/test/user-font-mask.c:66: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 data[8];
data/cairo-1.16.0/test/user-font-rescale.c:100:33:  [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.
unichar_to_utf8 (uint32_t ucs4, char utf8[7])
data/cairo-1.16.0/test/user-font-rescale.c:142: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 utf8[7];
data/cairo-1.16.0/test/user-font.c:61: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 data[16];
data/cairo-1.16.0/test/zero-mask.c:103:21:  [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.
    static unsigned char data[8 * 4] = { 0, };
data/cairo-1.16.0/util/backtrace-symbols.c:148:45:  [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.
static void translate_addresses(bfd * abfd, char (*addr)[PTRSTR_LEN], int naddr)
data/cairo-1.16.0/util/cairo-missing/strndup.c:51:2:  [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 (sdup, s, len);
data/cairo-1.16.0/util/cairo-script/cairo-script-file.c:69:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file->src = fopen (path, mode);
data/cairo-1.16.0/util/cairo-script/cairo-script-file.c:436: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 (buf, data->bp, len);
data/cairo-1.16.0/util/cairo-script/cairo-script-file.c:545: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 (buf, data->bp, len);
data/cairo-1.16.0/util/cairo-script/cairo-script-file.c:901:6:  [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 (buf, file->bp, ret);
data/cairo-1.16.0/util/cairo-script/cairo-script-file.c:913:6:  [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 (buf, file->bp, ret);
data/cairo-1.16.0/util/cairo-script/cairo-script-interpreter.c:513:6:  [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 (istring->string, str, len);
data/cairo-1.16.0/util/cairo-script/cairo-script-objects.c:508:2:  [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->string, str, len);
data/cairo-1.16.0/util/cairo-script/cairo-script-operators.c:656:2:  [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 (array->stack.objects,
data/cairo-1.16.0/util/cairo-script/cairo-script-operators.c:1508: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 buf[12];
data/cairo-1.16.0/util/cairo-script/cairo-script-operators.c:1727:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp (template);
data/cairo-1.16.0/util/cairo-script/cairo-script-operators.c:2145: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, str, len);
data/cairo-1.16.0/util/cairo-script/cairo-script-operators.c:5406:6:  [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 (cairo_image_surface_get_data (surface),
data/cairo-1.16.0/util/cairo-script/cairo-script-stack.c:105: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 (copy, stack->objects + i, n * sizeof (csi_object_t));
data/cairo-1.16.0/util/cairo-script/csi-bind.c:63:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    out = fopen (argv[argc-1], "w");
data/cairo-1.16.0/util/cairo-script/csi-bind.c:73:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    in = fopen (argv[i], "r");
data/cairo-1.16.0/util/cairo-script/csi-bind.c:88:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		in = fopen (argv[1], "r");
data/cairo-1.16.0/util/cairo-script/csi-trace.c:62: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 buf[4096];
data/cairo-1.16.0/util/cairo-sphinx/fdr.c:129:21:  [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).
	    int fd = env ? atoi (env) : 1;
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:136:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    got_fd = open("/dev/null", flags | O_CREAT, 0700);
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:301: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 buf[1024];
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:331:2:  [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 (c->name, str + 5, len);
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:344:2:  [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 (c->target, str + 7, len);
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:357:2:  [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 (c->reference, str + 10, len);
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:381: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 (name, str + 5, i);
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:691: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 buf[4096];
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:818:6:  [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 (c->out_buf + c->out_len, line, rem);
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:850: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 buf[1024];
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:856:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf (buf, ".image %lu %d %d %d %d\n",
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:966: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 buf[1024];
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:971:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf (buf, ".recording %p %lu\n", source, closure->id);
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:1094:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf (buf, "client-command target=recording name=.recorder\n");
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:1105:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf (buf, "client-trace name=.recorder\n");
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:1158: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 line[4096];
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:1232:19:  [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).
		    int count = atoi (line + 5) + 1;
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:1482: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 buf[4096];
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:1511: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 buf[4096];
data/cairo-1.16.0/util/cairo-trace/lookup-symbol.c:184: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 path[1024];
data/cairo-1.16.0/util/cairo-trace/lookup-symbol.c:252: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[0];
data/cairo-1.16.0/util/cairo-trace/lookup-symbol.c:319:2:  [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 (cache->name, buf, len + 1);
data/cairo-1.16.0/util/cairo-trace/trace.c:236:2:  [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 caller[1024]; \
data/cairo-1.16.0/util/cairo-trace/trace.c:623: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 buffer[512], single_fmt[SINGLE_FMT_BUFFER_SIZE];
data/cairo-1.16.0/util/cairo-trace/trace.c:668:2:  [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 (single_fmt, start, single_fmt_length);
data/cairo-1.16.0/util/cairo-trace/trace.c:752:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen ("/proc/self/cmdline", "rb");
data/cairo-1.16.0/util/cairo-trace/trace.c:776: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[4096] = "";
data/cairo-1.16.0/util/cairo-trace/trace.c:787: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 buf[4096];
data/cairo-1.16.0/util/cairo-trace/trace.c:798: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).
	_flush = atoi (env);
data/cairo-1.16.0/util/cairo-trace/trace.c:803:15:  [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).
	_line_info = atoi (env);
data/cairo-1.16.0/util/cairo-trace/trace.c:808:16:  [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).
	_mark_dirty = atoi (env);
data/cairo-1.16.0/util/cairo-trace/trace.c:812: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).
	int fd = atoi (filename);
data/cairo-1.16.0/util/cairo-trace/trace.c:829:2:  [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[4096] = "";
data/cairo-1.16.0/util/cairo-trace/trace.c:837:6:  [2] (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). Risk is low because the source is a constant string.
	    strcpy (name, "cairo-trace.dat");
data/cairo-1.16.0/util/cairo-trace/trace.c:847:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    logfile = fopen (filename, "wb");
data/cairo-1.16.0/util/cairo-trace/trace.c:1332:14:  [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.
    unsigned char zin_buf[BUFFER_SIZE];
data/cairo-1.16.0/util/cairo-trace/trace.c:1333:14:  [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.
    unsigned char zout_buf[BUFFER_SIZE];
data/cairo-1.16.0/util/cairo-trace/trace.c:1334:14:  [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.
    unsigned char four_tuple[4];
data/cairo-1.16.0/util/cairo-trace/trace.c:1360:38:  [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.
_expand_four_tuple_to_five (unsigned char four_tuple[4],
data/cairo-1.16.0/util/cairo-trace/trace.c:1361:17:  [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.
			    unsigned char five_tuple[5])
data/cairo-1.16.0/util/cairo-trace/trace.c:1387:14:  [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.
    unsigned char five_tuple[5];
data/cairo-1.16.0/util/cairo-trace/trace.c:1453:2:  [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 (stream->zin_buf + stream->zlib_stream.avail_in, p, count);
data/cairo-1.16.0/util/cairo-trace/trace.c:1474:14:  [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.
    unsigned char five_tuple[5];
data/cairo-1.16.0/util/cairo-trace/trace.c:1924: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[4] = { '\\' };
data/cairo-1.16.0/util/cairo-trace/trace.c:4060:2:  [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 symbol[1024];
data/cairo-1.16.0/util/cairo-trace/trace.c:4437: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 buf[8192];
data/cairo-1.16.0/util/cairo-trace/trace.c:4440:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen (path, "rb");
data/cairo-1.16.0/util/cairo-trace/trace.c:4449:6:  [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 ((char *) data->data + data->size, buf, ret);
data/cairo-1.16.0/util/cairo-trace/trace.c:4502:2:  [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->data, mem, size);
data/cairo-1.16.0/util/cairo-trace/trace.c:4536: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->data, args->memory_base, args->memory_size);
data/cairo-1.16.0/util/cairo-trace/trace.c:4834:2:  [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 filename_string[4096];
data/cairo-1.16.0/util/font-view.c:159:22:  [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).
	    options.slant = atoi (argv[2]);
data/cairo-1.16.0/util/font-view.c:165:23:  [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).
	    options.weight = atoi (argv[3]);
data/cairo-1.16.0/util/malloc-stats.c:135: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 (name, p, len);
data/cairo-1.16.0/util/show-contour.c:633:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen (argv[1], "r");
data/cairo-1.16.0/util/show-edges.c:1127:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen (argv[1], "r");
data/cairo-1.16.0/util/show-edges.c:1161:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen (argv[2], "r");
data/cairo-1.16.0/util/show-events.c:746:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen (filename, "r");
data/cairo-1.16.0/util/show-polygon.c:605:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen (argv[1], "r");
data/cairo-1.16.0/util/show-traps.c:1101:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen (argv[1], "r");
data/cairo-1.16.0/util/show-traps.c:1153:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen (argv[2], "r");
data/cairo-1.16.0/util/show-traps.c:1207:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen (argv[3], "r");
data/cairo-1.16.0/util/show-traps.c:1247:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen (argv[3], "r");
data/cairo-1.16.0/util/trace-to-xml.c:52:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	in = fopen (argv[1], "r");
data/cairo-1.16.0/util/trace-to-xml.c:54:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	out = fopen (argv[2], "w");
data/cairo-1.16.0/util/xml-to-trace.c:8: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 tail_buf[80];
data/cairo-1.16.0/util/xml-to-trace.c:225: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 buf[8192];
data/cairo-1.16.0/util/xml-to-trace.c:234:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	in = fopen (argv[1], "r");
data/cairo-1.16.0/util/xml-to-trace.c:236:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	trace.stream = fopen (argv[2], "w");
data/cairo-1.16.0/boilerplate/cairo-boilerplate.c:538:17:  [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).
		content_len = strlen(tcontent_name);
data/cairo-1.16.0/boilerplate/cairo-boilerplate.c:539:6:  [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(content_name) != content_len)
data/cairo-1.16.0/boilerplate/cairo-boilerplate.c:580:9:  [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(content_name) != content_len)
data/cairo-1.16.0/boilerplate/cairo-boilerplate.c:612:17:  [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).
		end = tname + strlen (tname);
data/cairo-1.16.0/boilerplate/cairo-boilerplate.c:753:17:  [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).
		end = tname + strlen (tname);
data/cairo-1.16.0/boilerplate/cairo-boilerplate.c:888:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ret = read (fd, buf, sizeof (buf) - 1);
data/cairo-1.16.0/perf/cairo-perf-graph-files.c:248:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read (fd, buf, sizeof (buf));
data/cairo-1.16.0/perf/cairo-perf-report.c:239:19:  [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).
    end = (path + strlen(path) - 1);
data/cairo-1.16.0/perf/micro/text.c:32:15:  [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).
    int len = strlen (text);
data/cairo-1.16.0/src/cairo-cff-subset.c:1348:37:  [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).
                                    strlen(registry));
data/cairo-1.16.0/src/cairo-cff-subset.c:1355:9:  [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).
				    strlen(ordering));
data/cairo-1.16.0/src/cairo-cff-subset.c:1940:33:  [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).
					    (unsigned char *)euro, strlen(euro));
data/cairo-1.16.0/src/cairo-cff-subset.c:2027:37:  [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).
                                    strlen(font->ps_name));
data/cairo-1.16.0/src/cairo-cff-subset.c:3249:37:  [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).
                                    strlen((char*)buf));
data/cairo-1.16.0/src/cairo-font-face-twin.c:221:11:  [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).
      i = strlen (what);
data/cairo-1.16.0/src/cairo-font-options.c:245:21:  [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).
        p = malloc (strlen (other->variations) + strlen (options->variations) + 2);
data/cairo-1.16.0/src/cairo-font-options.c:245: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).
        p = malloc (strlen (other->variations) + strlen (options->variations) + 2);
data/cairo-1.16.0/src/cairo-font-options.c:248:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat (p, ",");
data/cairo-1.16.0/src/cairo-font-options.c:320:55:  [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).
      hash = _cairo_string_hash (options->variations, strlen (options->variations));
data/cairo-1.16.0/src/cairo-ft-font.c:1992:21:  [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).
        p = malloc (strlen (other->base.variations) + strlen (options->base.variations) + 2);
data/cairo-1.16.0/src/cairo-ft-font.c:1992:55:  [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).
        p = malloc (strlen (other->base.variations) + strlen (options->base.variations) + 2);
data/cairo-1.16.0/src/cairo-ft-font.c:1995:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat (p, ",");
data/cairo-1.16.0/src/cairo-ft-font.c:2994:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	} else if (face->stream->read != NULL) {
data/cairo-1.16.0/src/cairo-ft-font.c:3000:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    ret = (* face->stream->read) (face->stream,
data/cairo-1.16.0/src/cairo-gl-info.c:100:18:  [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).
    size_t len = strlen (ext);
data/cairo-1.16.0/src/cairo-misc.c:844: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).
    decimal_point_len = strlen (decimal_point);
data/cairo-1.16.0/src/cairo-misc.c:862:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy (bufptr, decimal_point, decimal_point_len);
data/cairo-1.16.0/src/cairo-misc.c:1055: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).
	len = strlen (str);
data/cairo-1.16.0/src/cairo-output-stream.c:316: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).
    decimal_point_len = strlen (decimal_point);
data/cairo-1.16.0/src/cairo-output-stream.c:369: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).
	decimal_len = strlen (p + decimal_point_len);
data/cairo-1.16.0/src/cairo-output-stream.c:496: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).
	    int len = strlen(s);
data/cairo-1.16.0/src/cairo-output-stream.c:514:15:  [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).
	p = buffer + strlen (buffer);
data/cairo-1.16.0/src/cairo-pdf-interchange.c:305:7:  [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).
					 strlen (dest->attrs.name));
data/cairo-1.16.0/src/cairo-pdf-interchange.c:817:11:  [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 = strlen (label);
data/cairo-1.16.0/src/cairo-pdf-interchange.c:1430:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat (buf, "Z");
data/cairo-1.16.0/src/cairo-pdf-interchange.c:1433:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat (buf, "+");
data/cairo-1.16.0/src/cairo-pdf-interchange.c:1435:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat (buf, "-");
data/cairo-1.16.0/src/cairo-pdf-interchange.c:1438: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).
	p = buf + strlen (buf);
data/cairo-1.16.0/src/cairo-pdf-interchange.c:1439:28:  [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_size = sizeof (buf) - strlen (buf);
data/cairo-1.16.0/src/cairo-pdf-interchange.c:1442:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat (buf, ")");
data/cairo-1.16.0/src/cairo-pdf-interchange.c:1633:5:  [1] (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). Risk is low because the source is a constant character.
    strcpy (buf, "(");
data/cairo-1.16.0/src/cairo-pdf-interchange.c:1636:9:  [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 (p) < 4)
data/cairo-1.16.0/src/cairo-pdf-interchange.c:1639:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat (buf, p, 4);
data/cairo-1.16.0/src/cairo-pdf-interchange.c:1644:6:  [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 (p) < 3)
data/cairo-1.16.0/src/cairo-pdf-interchange.c:1647:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat (buf, p + 1, 2);
data/cairo-1.16.0/src/cairo-pdf-interchange.c:1652:9:  [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 (p) < 1)
data/cairo-1.16.0/src/cairo-pdf-interchange.c:1654:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat (buf, p, 1);
data/cairo-1.16.0/src/cairo-pdf-interchange.c:1658:9:  [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 (p) < 2)
data/cairo-1.16.0/src/cairo-pdf-interchange.c:1661:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat (buf, p, 2);
data/cairo-1.16.0/src/cairo-pdf-interchange.c:1662:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat (buf, "'");
data/cairo-1.16.0/src/cairo-pdf-interchange.c:1666:9:  [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 (p) < 3)
data/cairo-1.16.0/src/cairo-pdf-interchange.c:1669:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat (buf, p + 1, 3);
data/cairo-1.16.0/src/cairo-pdf-interchange.c:1672:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat (buf, ")");
data/cairo-1.16.0/src/cairo-pdf-surface.c:5156:11:  [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 = strlen (utf8);
data/cairo-1.16.0/src/cairo-pdf-surface.c:5193:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat (str, ">");
data/cairo-1.16.0/src/cairo-pdf-surface.c:5308:53:  [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).
    hash = _hash_data ((unsigned char *) font_name, strlen(font_name), 0);
data/cairo-1.16.0/src/cairo-ps-surface.c:1670:30:  [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 (comment[0] != '%' || strlen (comment) > 255) {
data/cairo-1.16.0/src/cairo-ps-surface.c:3221:11:  [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 = strlen (eod_str);
data/cairo-1.16.0/src/cairo-quartz-font.c:199:32:  [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).
    full_name = _cairo_malloc (strlen (family) + 64); // give us a bit of room to tack on Bold, Oblique, etc.
data/cairo-1.16.0/src/cairo-scaled-font-subsets.c:1211:21:  [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).
    for (i = 0; i < strlen(s); i++)
data/cairo-1.16.0/src/cairo-scaled-font-subsets.c:1295:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (buf, _cairo_winansi_to_glyphname (ch), sizeof (buf));
data/cairo-1.16.0/src/cairo-scaled-font.c:1994:13:  [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).
	utf8_len = strlen (utf8);
data/cairo-1.16.0/src/cairo-script-surface.c:100:45:  [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).
    _cairo_output_stream_write ((S), (STR), strlen (STR))
data/cairo-1.16.0/src/cairo-script-surface.c:3245: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).
	    len = strlen (utf8);
data/cairo-1.16.0/src/cairo-script-surface.c:3822: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).
	len = strlen (comment);
data/cairo-1.16.0/src/cairo-toy-font-face.c:166:9:  [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).
		      strlen (CAIRO_USER_FONT_FAMILY_DEFAULT)))
data/cairo-1.16.0/src/cairo-truetype-subset.c:1514:11:  [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 = strlen (str);
data/cairo-1.16.0/src/cairo-type1-subset.c:204:14:  [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).
    length = strlen (token);
data/cairo-1.16.0/src/cairo-type1-subset.c:245:57:  [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).
	font->header_segment_size = eexec_token - (char *) p + strlen ("eexec\n");
data/cairo-1.16.0/src/cairo-type1-subset.c:280:18:  [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).
	    p = start + strlen(key);
data/cairo-1.16.0/src/cairo-type1-subset.c:295:15:  [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).
	    start += strlen(key);
data/cairo-1.16.0/src/cairo-type1-subset.c:315: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).
    decimal_point_len = strlen (decimal_point);
data/cairo-1.16.0/src/cairo-type1-subset.c:337:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(s + j, decimal_point, decimal_point_len);
data/cairo-1.16.0/src/cairo-type1-subset.c:414:14:  [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).
    start += strlen ("/FontName");
data/cairo-1.16.0/src/cairo-type1-subset.c:427:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (s, start, end - start);
data/cairo-1.16.0/src/cairo-type1-subset.c:437:9:  [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(start) > 7 && start[6] == '+') {
data/cairo-1.16.0/src/cairo-type1-subset.c:1103:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (s, name, name_length);
data/cairo-1.16.0/src/cairo-type1-subset.c:1152:17:  [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).
		name_length = strlen(name);
data/cairo-1.16.0/src/cairo-type1-subset.c:1292:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (lenIV_str, lenIV_start, lenIV_end - lenIV_start);
data/cairo-1.16.0/src/cairo-type1-subset.c:1320:17:  [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).
    p = subrs + strlen ("/Subrs");
data/cairo-1.16.0/src/cairo-type1-subset.c:1355:23:  [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).
    p = charstrings + strlen ("/CharStrings");
data/cairo-1.16.0/src/cairo-type1-subset.c:1498:48:  [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).
	                        closefile_token - p + strlen ("closefile") + 1);
data/cairo-1.16.0/src/cairo-xcb-surface-render.c:486: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).
	len = strlen ("fast");
data/cairo-1.16.0/src/cairo-xcb-surface-render.c:491: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).
	len = strlen ("good");
data/cairo-1.16.0/src/cairo-xcb-surface-render.c:496: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).
	len = strlen ("best");
data/cairo-1.16.0/src/cairo-xcb-surface-render.c:501: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).
	len = strlen ("nearest");
data/cairo-1.16.0/src/cairo-xcb-surface-render.c:506: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).
	len = strlen ("bilinear");
data/cairo-1.16.0/src/cairo-xcb-surface-render.c:513: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).
	len = strlen ("best");
data/cairo-1.16.0/src/cairo.c:3535: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).
    utf8_len = strlen (utf8);
data/cairo-1.16.0/src/cairo.c:3700:13:  [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).
	utf8_len = strlen (utf8);
data/cairo-1.16.0/src/drm/cairo-drm-i915-private.h:1034:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define OUT_RELOC(surface, read, write) i915_batch_emit_reloc (device, to_intel_bo (surface->intel.drm.bo), surface->offset, read, write, FALSE)
data/cairo-1.16.0/src/drm/cairo-drm-i915-private.h:1034:126:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define OUT_RELOC(surface, read, write) i915_batch_emit_reloc (device, to_intel_bo (surface->intel.drm.bo), surface->offset, read, write, FALSE)
data/cairo-1.16.0/src/drm/cairo-drm-i915-private.h:1035:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define OUT_RELOC_FENCED(surface, read, write) i915_batch_emit_reloc (device, to_intel_bo (surface->intel.drm.bo), surface->offset, read, write, TRUE)
data/cairo-1.16.0/src/drm/cairo-drm-i915-private.h:1035:133:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define OUT_RELOC_FENCED(surface, read, write) i915_batch_emit_reloc (device, to_intel_bo (surface->intel.drm.bo), surface->offset, read, write, TRUE)
data/cairo-1.16.0/src/win32/cairo-win32-font.c:1952:57:  [1] (buffer) wcslen:
  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).
    hash = _cairo_hash_bytes (0, logfont->lfFaceName, 2*wcslen(logfont->lfFaceName));
data/cairo-1.16.0/test/any2ppm.c:625:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read (fd, line + i, 1);
data/cairo-1.16.0/test/any2ppm.c:677:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ret = read (fd, buf, sizeof (buf) - 1);
data/cairo-1.16.0/test/api-special-cases.c:1104: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).
					  strlen (data),
data/cairo-1.16.0/test/cairo-test-runner.c:284: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).
	    len = strlen (old_argv[i]) + 1;
data/cairo-1.16.0/test/cairo-test-runner.c:310: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).
	    len = strlen (s) + 1;
data/cairo-1.16.0/test/cairo-test-trace.c:217:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int ret = read (fd, data, len);
data/cairo-1.16.0/test/cairo-test.c:578:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	t = getc (test);
data/cairo-1.16.0/test/cairo-test.c:579:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	p = getc (pass);
data/cairo-1.16.0/test/cairo-test.c:615:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc (src)) != EOF)
data/cairo-1.16.0/test/cairo-test.c:1689:34:  [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).
				 (unsigned char *)unique_id, strlen(unique_id),
data/cairo-1.16.0/test/mime-data.c:244: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).
					  strlen (ccitt_image_params),
data/cairo-1.16.0/test/mime-surface-api.c:100:9:  [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).
					   strlen (data1),
data/cairo-1.16.0/test/mime-surface-api.c:113:9:  [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).
					   strlen (data2),
data/cairo-1.16.0/test/mime-unique-id.c:99: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).
					  strlen (unique_id),
data/cairo-1.16.0/test/mime-unique-id.c:147: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).
					  strlen (unique_id),
data/cairo-1.16.0/test/mime-unique-id.c:230: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).
					  strlen (bounded ? bounded_id : unbounded_id),
data/cairo-1.16.0/test/overlapping-glyphs.c:67:18:  [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).
				      cairo, strlen (cairo),
data/cairo-1.16.0/test/overlapping-glyphs.c:80:17:  [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).
				      giza, strlen (giza),
data/cairo-1.16.0/test/pdf-tagged-text.c:178:17:  [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).
	sprintf (buf + strlen(buf), "%d", num);
data/cairo-1.16.0/test/ps-eps.c:222:35:  [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 (strncmp (buf, DOCUMENT_BBOX, strlen (DOCUMENT_BBOX)) == 0) {
data/cairo-1.16.0/test/ps-eps.c:223:24:  [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).
	    ret = sscanf (buf+strlen (DOCUMENT_BBOX), "%d %d %d %d", &llx, &lly, &urx, &ury);
data/cairo-1.16.0/test/ps-eps.c:228:31:  [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 (strncmp (buf, PAGE_BBOX, strlen (PAGE_BBOX)) == 0) {
data/cairo-1.16.0/test/ps-eps.c:229:24:  [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).
	    ret = sscanf (buf+strlen (PAGE_BBOX), "%d %d %d %d", &llx, &lly, &urx, &ury);
data/cairo-1.16.0/test/pthread-show-text.c:82:18:  [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[0] = text[i%strlen(text)];
data/cairo-1.16.0/test/record.c:76:34:  [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).
				 (unsigned char *)unique_id, strlen(unique_id),
data/cairo-1.16.0/test/record.c:115:34:  [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).
				 (unsigned char *)unique_id, strlen(unique_id),
data/cairo-1.16.0/test/record.c:143:34:  [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).
				 (unsigned char *)unique_id, strlen(unique_id),
data/cairo-1.16.0/util/backtrace-symbols.c:334:21:  [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 (match.file && strlen(match.file))
data/cairo-1.16.0/util/backtrace-symbols.c:339: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).
		total += strlen(ret_buf[0]) + 1;
data/cairo-1.16.0/util/backtrace-symbols.c:353: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).
		f_strings += strlen(f_strings) + 1;
data/cairo-1.16.0/util/cairo-missing/getline.c:72:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = getc (stream);
data/cairo-1.16.0/util/cairo-missing/strndup.c:46:11:  [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 = strlen (s);
data/cairo-1.16.0/util/cairo-script/cairo-script-interpreter.c:613: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).
	len = strlen (line);
data/cairo-1.16.0/util/cairo-script/cairo-script-objects.c:469:45:  [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).
    status = _csi_intern_string (ctx, &str, strlen (str));
data/cairo-1.16.0/util/cairo-script/cairo-script-objects.c:488: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).
	len = strlen (str);
data/cairo-1.16.0/util/cairo-script/cairo-script-objects.c:826:5:  [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).
				strlen (bstr));
data/cairo-1.16.0/util/cairo-script/cairo-script-objects.c:867:24:  [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).
	    *out = lexcmp (x, strlen(x), y, strlen (y));
data/cairo-1.16.0/util/cairo-script/cairo-script-objects.c:867:38:  [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).
	    *out = lexcmp (x, strlen(x), y, strlen (y));
data/cairo-1.16.0/util/cairo-script/cairo-script-objects.c:925:7:  [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).
				  strlen (bstr));
data/cairo-1.16.0/util/cairo-script/cairo-script-operators.c:2139: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).
	len = strlen (str);
data/cairo-1.16.0/util/cairo-script/cairo-script-scanner.c:1448:9:  [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).
			     strlen ((char *) name));
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:106:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int ret = read (fd, data, len);
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:222:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int ret = read (fd, &line[len], 1);
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:329: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).
	    len = strlen (str + 5);
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:342: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).
	    len = strlen (str + 7);
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:355: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).
	    len = strlen (str + 10);
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:378:6:  [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).
	i = strlen (str + 5);
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:952:35:  [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).
    writen (c->sk, ".complete\n", strlen (".complete\n"));
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:1120:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((ret = read (pfd.fd, buf + len, buf_size - len)) > 0) {
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:1294:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len = read (source, line, sizeof (line));
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:1444:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((ret = read (pfd.fd, buf + len, buf_size - len)) > 0) {
data/cairo-1.16.0/util/cairo-sphinx/sphinx.c:1504:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int ret = read (fd, &buf, 1);
data/cairo-1.16.0/util/cairo-trace/lookup-symbol.c:315:11:  [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 = strlen (buf);
data/cairo-1.16.0/util/cairo-trace/trace.c:545: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).
    decimal_point_len = strlen (decimal_point);
data/cairo-1.16.0/util/cairo-trace/trace.c:592: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).
	decimal_len = strlen (p + decimal_point_len);
data/cairo-1.16.0/util/cairo-trace/trace.c:724:15:  [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).
	p = buffer + strlen (buffer);
data/cairo-1.16.0/util/cairo-trace/trace.c:762:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy (buf, name, length-1);
data/cairo-1.16.0/util/cairo-trace/trace.c:768:15:  [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).
	size_t len = strlen (slash+1);
data/cairo-1.16.0/util/cairo-trace/trace.c:1811: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).
	len = strlen (utf8);
data/cairo-1.16.0/util/cairo-trace/trace.c:1893: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).
	len = strlen (utf8);
data/cairo-1.16.0/util/malloc-stats.c:133:9:  [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 = strlen (p) + 1;

ANALYSIS SUMMARY:

Hits = 844
Lines analyzed = 356488 in approximately 11.80 seconds (30205 lines/second)
Physical Source Lines of Code (SLOC) = 248188
Hits@level = [0] 828 [1] 156 [2] 533 [3]  65 [4]  88 [5]   2
Hits@level+ = [0+] 1672 [1+] 844 [2+] 688 [3+] 155 [4+]  90 [5+]   2
Hits/KSLOC@level+ = [0+] 6.73683 [1+] 3.40065 [2+] 2.77209 [3+] 0.624527 [4+] 0.362628 [5+] 0.00805841
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.