Skip to content

Commit

Permalink
[libpng16] Fixed a potential null pointer dereference in png_set_text…
Browse files Browse the repository at this point in the history
…_2()

(bug report and patch by Patrick Keshishian).
  • Loading branch information
Glenn Randers-Pehrson committed Dec 29, 2016
1 parent a3b5edc commit 812768d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ANNOUNCE
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ Changes since the last public release (1.6.26):
substitution of an expression itself containing a well-formed defined
operation.
Added ARM support to CMakeLists.txt (Andreas Franek).
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
(subscription required; visit
Expand Down
2 changes: 2 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -5771,6 +5771,8 @@ Version 1.6.27rc01 [December 27, 2016]
Added ARM support to CMakeLists.txt (Andreas Franek).

Version 1.6.27 [December 29, 2016]
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
(subscription required; visit
Expand Down
1 change: 1 addition & 0 deletions png.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ png_free_data(png_const_structrp png_ptr, png_inforp info_ptr, png_uint_32 mask,
png_free(png_ptr, info_ptr->text);
info_ptr->text = NULL;
info_ptr->num_text = 0;
info_ptr->max_text = 0;
}
}
#endif
Expand Down

0 comments on commit 812768d

Please sign in to comment.