[cairo] Regression in libpng-1.5.2 affecting cairo

Andrea Canciani ranma42 at gmail.com
Thu Jul 7 08:11:34 PDT 2011


On Thu, Jul 7, 2011 at 11:33 AM, Ross Alexander
<Ross.Alexander at emea.nec.com> wrote:
> This is just a heads up that libpng-1.5.2 has a regression which causes
> corrupted output.  The example below produces a square block of green.
> Libpng-1.5.4rc1 produces the correct result (block of blue).

Thank you for reporting this!

The bugfix for that issue is indicated in the ChangeLog:
Version 1.5.3beta03 [April 16, 2011]
[...]
Fixed bug with stripping the filler or alpha channel when writing, that
was introduced in libpng-1.5.2beta01 (bug report by Andrew Church).

The relevant commit is:
http://libpng.git.sourceforge.net/git/gitweb.cgi?p=libpng/libpng;a=commitdiff;h=cb1aee250698490a4117797c398f93c5a089f95f;hp=8d4ce1fed58e96970ba4c30f39ea4a7712abaeaa

This issue was tracked in https://bugs.freedesktop.org/show_bug.cgi?id=38938,
but I closed it because today libpng 1.5.4 has been released, fixing it.
http://sourceforge.net/projects/libpng/files/libpng15/1.5.4/

Andrea

>
>
>
>   cairo_surface_t* surface = cairo_image_surface_create(CAIRO_FORMAT_RGB24,
> width, height);
>
>   cairo_t *cr = cairo_create(surface);
>
>   cairo_rectangle(cr, 0, 0, width, height / 3);
>
>   cairo_set_source_rgb(cr, 0.0, 0.0, 0.8);
>
>   cairo_paint(cr);
>
>   cairo_destroy(cr);
>
>   cairo_surface_write_to_png(surface, "libpng-cairo.png");
>
>
>
>
>
> Ross Alexander
>
> SAP Basis
>
> NEC Europe Ltd
>
> European Information Systems
>
> Tel:     +44 20 8752 3394
>
>
>
> IMPORTANT: The information contained in this e-mail and attachment (if any)
> is intended for the person to whom it is addressed and may contain
> confidential and/or privileged information. The contents of this message may
> contain personal views which are not the views of NEC Europe Ltd or its
> subsidiaries, unless specifically stated. You should not copy, retain,
> forward or disclose its contents to anyone else, or take any action based
> upon it, if it is not addressed to you personally.  If you have received
> this e-mail in error please contact the sender immediately. Any legally
> binding agreement resulting from its content must be made separately in a
> printed
>
>
>
> NEC Europe Limited | Registered Office: NEC House, 1 Victoria Road, London
> W3 6BL | Registered in England 2832014
>
>
>
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
>


More information about the cairo mailing list