[devel] Fixed a problem in png_do_expand_palette() exposed by optimization in

1.5.3beta06
  Also removed a spurious (totally unused and confusing) member from png_info.
  The palette expand optimization prevented expansion to an intermediate RGBA
    form if tRNS was present but alpha was marked to be stripped; this exposed
    a check for tRNS in png_do_expand_palette() which is inconsistent with the
    code elsewhere in libpng.
This commit is contained in:
John Bowler
2011-06-14 23:01:07 -05:00
committed by Glenn Randers-Pehrson
parent 06a9684cfa
commit cd3b0cc4d9
4 changed files with 31 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
Libpng 1.5.4beta03 - June 14, 2011
Libpng 1.5.4beta03 - June 15, 2011
This is not intended to be a public release. It will be replaced
within a few weeks by a public version or by another test version.
@@ -202,7 +202,14 @@ Version 1.5.4beta02 [June 14, 2011]
called.
Made png_set_chop_16() API removeable by disabling PNG_CHOP_16_TO_8_SUPPORTED
Version 1.5.4beta03 [June 14, 2011]
Version 1.5.4beta03 [June 15, 2011]
Fixed a problem in png_do_expand_palette() exposed by optimization in
1.5.3beta06
Also removed a spurious (totally unused and confusing) member from png_info.
The palette expand optimization prevented expansion to an intermediate RGBA
form if tRNS was present but alpha was marked to be stripped; this exposed
a check for tRNS in png_do_expand_palette() which is inconsistent with the
code elsewhere in libpng.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net:
(subscription required; visit