[cairo] cairo_image_surface_create_for_png bug

Steve Chaplin stevech1097 at yahoo.com.au
Fri Apr 8 23:25:57 PDT 2005


calling cairo_image_surface_create_for_png() for a 0 byte file gives:
libpng error: Read Error
Aborted

Here's a patch so cairo_image_surface_create_for_png() returns NULL
when given a 0 byte file.

Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cairo-png.c.patch
Type: text/x-patch
Size: 625 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050409/fdb6ff0a/cairo-png.c.bin


More information about the cairo mailing list