[libpng16] Enable png_set_check_for_invalid_index() for both read and write.

This commit is contained in:
Glenn Randers-Pehrson 2012-04-13 12:35:21 -05:00
parent 747b554a86
commit e243a1fbd8
3 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,5 @@
Libpng 1.6.0beta21 - March 29, 2012 Libpng 1.6.0beta21 - April 13, 2012
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.
@ -349,7 +349,8 @@ Version 1.6.0beta20 [March 29, 2012]
Revised png_set_text_2() to avoid potential memory corruption (fixes Revised png_set_text_2() to avoid potential memory corruption (fixes
CVE-2011-3048). CVE-2011-3048).
Version 1.6.0beta21 [March 29, 2012] Version 1.6.0beta21 [April 13, 2012]
Enable png_set_check_for_invalid_index() for both read and write.
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

View File

@ -4100,7 +4100,8 @@ Version 1.6.0beta20 [March 29, 2012]
Revised png_set_text_2() to avoid potential memory corruption (fixes Revised png_set_text_2() to avoid potential memory corruption (fixes
CVE-2011-3048). CVE-2011-3048).
Version 1.6.0beta21 [March 29, 2012] Version 1.6.0beta21 [April 13, 2012]
Enable png_set_check_for_invalid_index() for both read and write.
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

View File

@ -1369,7 +1369,7 @@ png_set_benign_errors(png_structrp png_ptr, int allowed)
} }
#endif /* PNG_BENIGN_ERRORS_SUPPORTED */ #endif /* PNG_BENIGN_ERRORS_SUPPORTED */
#ifdef PNG_READ_CHECK_FOR_INVALID_INDEX_SUPPORTED #ifdef PNG_CHECK_FOR_INVALID_INDEX_SUPPORTED
/* Do not report invalid palette index; added at libng-1.5.10 */ /* Do not report invalid palette index; added at libng-1.5.10 */
void PNGAPI void PNGAPI
png_set_check_for_invalid_index(png_structrp png_ptr, int allowed) png_set_check_for_invalid_index(png_structrp png_ptr, int allowed)