[cairo-bugs] [Bug 62779] New: libpng 1.6 - out of memory

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Mar 26 14:01:15 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=62779

          Priority: medium
            Bug ID: 62779
          Assignee: cworth at cworth.org
           Summary: libpng 1.6 - out of memory
        QA Contact: cairo-bugs at cairographics.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: dominique-freedesktop.org at leuenberger.net
          Hardware: Other
            Status: NEW
           Version: 1.12.14
         Component: png functions
           Product: cairo

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)

===

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20130326/ed7e8f08/attachment.html>


More information about the cairo-bugs mailing list