mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng16] Increase num_palette to invalid_index + 1, not to invalid_index.
This commit is contained in:
parent
566fb611b6
commit
b0606ea043
1
ANNOUNCE
1
ANNOUNCE
@ -212,6 +212,7 @@ Version 1.6.0beta11 [February 16, 2012]
|
|||||||
Apps are responsible for checking to see if that happened.
|
Apps are responsible for checking to see if that happened.
|
||||||
|
|
||||||
Version 1.6.0beta12 [February 17, 2012]
|
Version 1.6.0beta12 [February 17, 2012]
|
||||||
|
Increase num_palette to invalid_index + 1, not to invalid_index.
|
||||||
|
|
||||||
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
|
||||||
|
1
CHANGES
1
CHANGES
@ -3963,6 +3963,7 @@ Version 1.6.0beta11 [February 16, 2012]
|
|||||||
Apps are responsible for checking to see if that happened.
|
Apps are responsible for checking to see if that happened.
|
||||||
|
|
||||||
Version 1.6.0beta12 [February 17, 2012]
|
Version 1.6.0beta12 [February 17, 2012]
|
||||||
|
Increase num_palette to invalid_index + 1, not to invalid_index.
|
||||||
|
|
||||||
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
|
||||||
|
@ -537,7 +537,7 @@ png_read_row(png_structrp png_ptr, png_bytep row, png_bytep dsp_row)
|
|||||||
if (*rp >= png_ptr->num_palette)
|
if (*rp >= png_ptr->num_palette)
|
||||||
{
|
{
|
||||||
png_warning(png_ptr,"Found invalid palette index");
|
png_warning(png_ptr,"Found invalid palette index");
|
||||||
png_ptr->num_palette=*rp;
|
png_ptr->num_palette=*rp + 1;
|
||||||
}
|
}
|
||||||
rp++;
|
rp++;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user