[libpng17] Fixed a potential null pointer dereference in png_set_text_2()

(bug report and patch by Patrick Keshishian)
This commit is contained in:
Glenn Randers-Pehrson 2016-12-29 07:57:00 -06:00
parent 48f8ca26e4
commit 243d4e5f3f
3 changed files with 5 additions and 0 deletions

View File

@ -1420,6 +1420,8 @@ Version 1.7.0beta85 [December 27, 2016]
Version 1.7.0beta86 [December 29, 2016] Version 1.7.0beta86 [December 29, 2016]
Ported CMakeLists.txt from libpng-1.6.27rc01. Ported CMakeLists.txt from libpng-1.6.27rc01.
Fixed a potential null pointer dereference in png_set_text_2() (bug report
and patch by Patrick Keshishian).
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

@ -5720,6 +5720,8 @@ Version 1.7.0beta85 [December 27, 2016]
Version 1.7.0beta86 [December 29, 2016] Version 1.7.0beta86 [December 29, 2016]
Ported CMakeLists.txt from libpng-1.6.27rc01. Ported CMakeLists.txt from libpng-1.6.27rc01.
Fixed a potential null pointer dereference in png_set_text_2() (bug report
and patch by Patrick Keshishian)
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
png.c
View File

@ -427,6 +427,7 @@ png_free_data(png_const_structrp png_ptr, png_inforp info_ptr, png_uint_32 mask,
png_free(png_ptr, info_ptr->text); png_free(png_ptr, info_ptr->text);
info_ptr->text = NULL; info_ptr->text = NULL;
info_ptr->num_text = 0; info_ptr->num_text = 0;
info_ptr->max_text = 0;
} }
} }
#endif #endif