summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2015-12-09 09:33:54 -0600
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2015-12-09 09:33:54 -0600
commit520b373ee53e92dce93917fea5a609b2a0291472 (patch)
treee24dac471d18711b00d9ba3d51dc22d4aee72b53
parent623e09d8c51cf336df2b2a6cbe907d092c1075f5 (diff)
downloadlibpng-520b373ee53e92dce93917fea5a609b2a0291472.tar.gz
[libpng12] Fixed an out-of-range read in png_check_keyword() (Bug report from
Qixue Xiao).
-rw-r--r--ANNOUNCE48
-rw-r--r--CHANGES8
-rw-r--r--pngwutil.c2
3 files changed, 29 insertions, 29 deletions
diff --git a/ANNOUNCE b/ANNOUNCE
index 23ec9ff4e..1ccdb88c4 100644
--- a/ANNOUNCE
+++ b/ANNOUNCE
@@ -1,51 +1,47 @@
-Libpng 1.2.55 - December 3, 2015
+Libpng 1.2.56beta01 - December 9, 2015
-This is a public release of libpng, intended for use in production codes.
+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.
Files available for download:
Source files with LF line endings (for Unix/Linux) and with a
"configure" script
- libpng-1.2.55.tar.xz (LZMA-compressed, recommended)
- libpng-1.2.55.tar.gz
+ libpng-1.2.56beta01.tar.xz (LZMA-compressed, recommended)
+ libpng-1.2.56beta01.tar.gz
Source files with LF line endings (for Unix/Linux) without the
"configure" script
- libpng-1.2.55-no-config.tar.xz (LZMA-compressed, recommended)
- libpng-1.2.55-no-config.tar.gz
+ libpng-1.2.56beta01-no-config.tar.xz (LZMA-compressed, recommended)
+ libpng-1.2.56beta01-no-config.tar.gz
Source files with CRLF line endings (for Windows), without the
"configure" script
- lpng1255.zip
- lpng1255.7z
+ lp1256b01.zip
+ lp1256b01.7z
Project files
- libpng-1.2.55-project-netware.zip
- libpng-1.2.55-project-wince.zip
+ libpng-1.2.56beta01-project-netware.zip
+ libpng-1.2.56beta01-project-wince.zip
Other information:
- libpng-1.2.55-README.txt
- libpng-1.2.55-KNOWNBUGS.txt
- libpng-1.2.55-LICENSE.txt
- libpng-1.2.55-Y2K-compliance.txt
- libpng-1.2.55-[previous version]-diff.txt
- libpng-1.2.55-*.asc (armored detached GPG signatures)
-
-Changes since the last public release (1.2.54):
-
- Avoid potential pointer overflow in png_handle_iTXt(), png_handle_zTXt(),
- png_handle_sPLT(), and png_handle_pCAL() (Bug report by John Regehr).
- Fixed incorrect implementation of png_set_PLTE() that uses png_ptr
- not info_ptr, that left png_set_PLTE() open to the CVE-2015-8126
- vulnerability.
- Discontinued distributing tar.bz2 archives.
- Discontinued distributing libpng-oldversion-newversion-diff.txt
+ libpng-1.2.56beta01-README.txt
+ libpng-1.2.56beta01-KNOWNBUGS.txt
+ libpng-1.2.56beta01-LICENSE.txt
+ libpng-1.2.56beta01-Y2K-compliance.txt
+ libpng-1.2.56beta01-[previous version]-diff.txt
+ libpng-1.2.56beta01-*.asc (armored detached GPG signatures)
+
+Changes since the last public release (1.2.55):
+
+ Fixed an out-of-range read in png_check_keyword() (Bug report from
+ Qixue Xiao).
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
diff --git a/CHANGES b/CHANGES
index a11aa64b7..b2eac991f 100644
--- a/CHANGES
+++ b/CHANGES
@@ -2901,14 +2901,18 @@ version 1.2.55beta01 [November 20, 2015]
version 1.2.55beta02 [November 23, 2015]
Fixed incorrect implementation of png_set_PLTE() that uses png_ptr
not info_ptr, that left png_set_PLTE() open to the CVE-2015-8126
- vulnerability.
+ vulnerability. Fixes CVE-2015-8472.
version 1.2.55rc01 [November 26, 2015]
Discontinued distributing tar.bz2 archives.
-version 1.2.55 and 1.0.65 [December 3, 2015]
+version 1.2.55 and 1.0.65 [December 6, 2015]
Discontinued distributing libpng-oldversion-newversion-diff.txt
+version 1.2.56beta01 [December 9, 2015]
+ Fixed an out-of-range read in png_check_keyword() (Bug report from
+ Qixue Xiao).
+
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
https://lists.sourceforge.net/lists/listinfo/png-mng-implement
diff --git a/pngwutil.c b/pngwutil.c
index bc6c98669..182f8db2f 100644
--- a/pngwutil.c
+++ b/pngwutil.c
@@ -1285,7 +1285,7 @@ png_check_keyword(png_structp png_ptr, png_charp key, png_charpp new_key)
{
png_warning(png_ptr, "trailing spaces removed from keyword");
- while (*kp == ' ')
+ while (key_len && *kp == ' ')
{
*(kp--) = '\0';
key_len--;