mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng14] Fixed bug recently introduced in png_set_PLTE() that uses png_ptr
not info_ptr.
This commit is contained in:
parent
1a45414d86
commit
dabe6c2a27
4
ANNOUNCE
4
ANNOUNCE
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Libpng 1.4.18beta02 - November 22, 2015
|
Libpng 1.4.18beta02 - November 23, 2015
|
||||||
|
|
||||||
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.
|
||||||
@ -32,6 +32,8 @@ version 1.4.18beta01 [November 20, 2015]
|
|||||||
png_handle_sPLT(), and png_handle_pCAL() (Bug report by John Regehr).
|
png_handle_sPLT(), and png_handle_pCAL() (Bug report by John Regehr).
|
||||||
|
|
||||||
version 1.4.18beta02 [%RDATE%]
|
version 1.4.18beta02 [%RDATE%]
|
||||||
|
Fixed bug recently introduced in png_set_PLTE() that uses png_ptr
|
||||||
|
not info_ptr.
|
||||||
|
|
||||||
Send comments/corrections/commendations to glennrp at users.sourceforge.net
|
Send comments/corrections/commendations to glennrp at users.sourceforge.net
|
||||||
or to png-mng-implement at lists.sf.net (subscription required; visit
|
or to png-mng-implement at lists.sf.net (subscription required; visit
|
||||||
|
4
CHANGES
4
CHANGES
@ -3011,7 +3011,9 @@ version 1.4.18beta01 [November 20, 2015]
|
|||||||
Avoid potential pointer overflow in png_handle_iTXt(), png_handle_zTXt(),
|
Avoid potential pointer overflow in png_handle_iTXt(), png_handle_zTXt(),
|
||||||
png_handle_sPLT(), and png_handle_pCAL() (Bug report by John Regehr).
|
png_handle_sPLT(), and png_handle_pCAL() (Bug report by John Regehr).
|
||||||
|
|
||||||
version 1.4.18beta02 [November 22, 2015]
|
version 1.4.18beta02 [November 23, 2015]
|
||||||
|
Fixed bug recently introduced in png_set_PLTE() that uses png_ptr
|
||||||
|
not info_ptr.
|
||||||
|
|
||||||
Send comments/corrections/commendations to glennrp at users.sourceforge.net
|
Send comments/corrections/commendations to glennrp at users.sourceforge.net
|
||||||
or to png-mng-implement at lists.sf.net (subscription required; visit
|
or to png-mng-implement at lists.sf.net (subscription required; visit
|
||||||
|
4
pngset.c
4
pngset.c
@ -434,8 +434,8 @@ png_set_PLTE(png_structp png_ptr, png_infop info_ptr,
|
|||||||
if (png_ptr == NULL || info_ptr == NULL)
|
if (png_ptr == NULL || info_ptr == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
max_palette_length = (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE) ?
|
max_palette_length = (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE) ?
|
||||||
(1 << png_ptr->bit_depth) : PNG_MAX_PALETTE_LENGTH;
|
(1 << info_ptr->bit_depth) : PNG_MAX_PALETTE_LENGTH;
|
||||||
|
|
||||||
if (num_palette < 0 || num_palette > (int) max_palette_length)
|
if (num_palette < 0 || num_palette > (int) max_palette_length)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user