[cairo] [PATCH] image: prevent invalid ptr access for > 4GB images

Chris Wilson chris at chris-wilson.co.uk
Thu Jun 15 12:26:33 UTC 2017


Quoting Adrian Johnson (2017-06-15 13:05:33)
> As the maximum image width is 32767 I don't see how this could overflow.

cairo_image_surface_create_for_data() lacks overflow protection against
stride. That is the only entry point that doesn't have a check afaik.
-Chris


More information about the cairo mailing list