Adding as bug - so it will not get lost http://comments.gmane.org/gmane.comp.lib.cairo/23741 Simple program attached seems to have different results when cairo is built against libpng15 and when it is built against libpng16*): cairo-libpng15-changeroot> ./cairo-fail tmp.png PNG image read. cairo-libpng16-changeroot> ./cairo-fail tmp.png Error reading PNG image tmp.png: out of memory === (gdb) n 102 png_app_error(png_ptr, (gdb) bt #0 png_rtran_ok (png_ptr=0x604ba0, need_IHDR=0) at pngrtran.c:102 #1 0x00007ffff66e2040 in png_set_read_user_transform_fn (png_ptr=0x604ba0, read_user_transform_fn=0x7ffff7b4ccfa <convert_bytes_to_data>) at pngrtran.c:1059 #2 0x00007ffff7b4d1af in read_png (png_closure=0x7fffffffe7f0) at cairo-png.c:651 #3 0x00007ffff7b4d507 in cairo_image_surface_create_from_png (filename=0x7fffffffec12 "tmp.png") at cairo-png.c:779 #4 0x00000000004008ae in main (argc=2, argv=0x7fffffffe928) at cairo-fail.c:8 (gdb) l 97 png_rtran_ok(png_structrp png_ptr, int need_IHDR) ===
Created attachment 77340 [details] [review] Build cairo against libpng16 Patch by pgajdos
Ups.. sorry.. I just see the patch comes from the mailing list.. and is by Ingmar Runge
*** This bug has been marked as a duplicate of bug 63487 ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.