[libpng16] Quiet an uninitialized memory warning from VC2013 in png_get_png().

This commit is contained in:
Glenn Randers-Pehrson 2014-01-30 15:02:18 -06:00
parent 2f1dede991
commit b91528db20
3 changed files with 16 additions and 16 deletions

View File

@ -1,5 +1,5 @@
Libpng 1.6.9rc01 - January 28, 2014 Libpng 1.6.9rc02 - January 30, 2014
This is not intended to be a public release. It will be replaced 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. within a few weeks by a public version or by another test version.
@ -9,19 +9,19 @@ Files available for download:
Source files with LF line endings (for Unix/Linux) and with a Source files with LF line endings (for Unix/Linux) and with a
"configure" script "configure" script
1.6.9rc01.tar.xz (LZMA-compressed, recommended) 1.6.9rc02.tar.xz (LZMA-compressed, recommended)
1.6.9rc01.tar.gz 1.6.9rc02.tar.gz
Source files with CRLF line endings (for Windows), without the Source files with CRLF line endings (for Windows), without the
"configure" script "configure" script
lp169r01.7z (LZMA-compressed, recommended) lp169r02.7z (LZMA-compressed, recommended)
lp169r01.zip lp169r02.zip
Other information: Other information:
1.6.9rc01-README.txt 1.6.9rc02-README.txt
1.6.9rc01-LICENSE.txt 1.6.9rc02-LICENSE.txt
Gnupg/*.asc (PGP armored detached signatures) Gnupg/*.asc (PGP armored detached signatures)
Changes since the last public release (1.6.8): Changes since the last public release (1.6.8):
@ -70,6 +70,9 @@ Version 1.6.9beta04 [January 20, 2014]
Version 1.6.9rc01 [January 28, 2014] Version 1.6.9rc01 [January 28, 2014]
No changes. No changes.
Version 1.6.9rc02 [January 30, 2014]
Quiet an uninitialized memory warning from VC2013 in png_get_png().
Send comments/corrections/commendations to png-mng-implement at lists.sf.net Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit (subscription required; visit
https://lists.sourceforge.net/lists/listinfo/png-mng-implement https://lists.sourceforge.net/lists/listinfo/png-mng-implement

View File

@ -4795,6 +4795,9 @@ Version 1.6.9beta04 [January 20, 2014]
Version 1.6.9rc01 [January 28, 2014] Version 1.6.9rc01 [January 28, 2014]
No changes. No changes.
Version 1.6.9rc02 [January 30, 2014]
Quiet an uninitialized memory warning from VC2013 in png_get_png().
Send comments/corrections/commendations to png-mng-implement at lists.sf.net Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit (subscription required; visit
https://lists.sourceforge.net/lists/listinfo/png-mng-implement https://lists.sourceforge.net/lists/listinfo/png-mng-implement

View File

@ -1069,7 +1069,7 @@ png_read_png(png_structrp png_ptr, png_inforp info_ptr,
if (transforms & PNG_TRANSFORM_EXPAND) if (transforms & PNG_TRANSFORM_EXPAND)
if ((png_ptr->bit_depth < 8) || if ((png_ptr->bit_depth < 8) ||
(png_ptr->color_type == PNG_COLOR_TYPE_PALETTE) || (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE) ||
(png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS))) (info_ptr->valid & PNG_INFO_tRNS))
png_set_expand(png_ptr); png_set_expand(png_ptr);
#endif #endif
@ -1088,14 +1088,8 @@ png_read_png(png_structrp png_ptr, png_inforp info_ptr,
* [0,65535] to the original [0,7] or [0,31], or whatever range the * [0,65535] to the original [0,7] or [0,31], or whatever range the
* colors were originally in: * colors were originally in:
*/ */
if ((transforms & PNG_TRANSFORM_SHIFT) if ((transforms & PNG_TRANSFORM_SHIFT) && (info_ptr->valid & PNG_INFO_sBIT))
&& png_get_valid(png_ptr, info_ptr, PNG_INFO_sBIT)) png_set_shift(png_ptr, &info_ptr->sig_bit);
{
png_color_8p sig_bit;
png_get_sBIT(png_ptr, info_ptr, &sig_bit);
png_set_shift(png_ptr, sig_bit);
}
#endif #endif
#ifdef PNG_READ_BGR_SUPPORTED #ifdef PNG_READ_BGR_SUPPORTED