Changeset 35794
- Timestamp:
- 2013-02-25T22:04:07+01:00 (5 years ago)
- Location:
- packages/libs/libpng
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
packages/libs/libpng/Makefile
r33862 r35794 1 1 # 2 # Copyright (C) 2006-201 2OpenWrt.org2 # Copyright (C) 2006-2013 OpenWrt.org 3 3 # 4 4 # This is free software, licensed under the GNU General Public License v2. … … 9 9 10 10 PKG_NAME:=libpng 11 PKG_VERSION:=1.2. 4612 PKG_RELEASE:= 211 PKG_VERSION:=1.2.50 12 PKG_RELEASE:=1 13 13 14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar. bz214 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz 15 15 PKG_SOURCE_URL:=@SF/libpng 16 PKG_MD5SUM:= e8b43dc78ef95b3949af7f961d76874b16 PKG_MD5SUM:=a3e00fccbfe356174ab515b5c00641c7 17 17 18 18 PKG_LICENSE:=LIBPNG GPLv2 -
packages/libs/libpng/patches/200-CVE-2011-3026.patch
r30633 r35794 1 --- a/pngrutil.c2 +++ b/pngrutil.c3 @@ -339,15 +339,18 @@ png_decompress_chunk(png_structp png_ptr4 /* Now check the limits on this chunk - if the limit fails the5 * compressed data will be removed, the prefix will remain.6 */7 + if (prefix_size >= (~(png_size_t)0) - 1 ||8 + expanded_size >= (~(png_size_t)0) - 1 - prefix_size9 #ifdef PNG_SET_CHUNK_MALLOC_LIMIT_SUPPORTED10 - if (png_ptr->user_chunk_malloc_max &&11 + || (png_ptr->user_chunk_malloc_max &&12 (prefix_size + expanded_size >= png_ptr->user_chunk_malloc_max - 1))13 #else14 # ifdef PNG_USER_CHUNK_MALLOC_MAX15 - if ((PNG_USER_CHUNK_MALLOC_MAX > 0) &&16 + || ((PNG_USER_CHUNK_MALLOC_MAX > 0) &&17 prefix_size + expanded_size >= PNG_USER_CHUNK_MALLOC_MAX - 1)18 # endif19 #endif20 + )21 png_warning(png_ptr, "Exceeded size limit while expanding chunk");22 23 /* If the size is zero either there was an error and a message24 @@ -355,14 +358,11 @@ png_decompress_chunk(png_structp png_ptr25 * and we have nothing to do - the code will exit through the26 * error case below.27 */28 -#if defined(PNG_SET_CHUNK_MALLOC_LIMIT_SUPPORTED) || \29 - defined(PNG_USER_CHUNK_MALLOC_MAX)30 - else31 -#endif32 - if (expanded_size > 0)33 + else if (expanded_size > 0)34 {35 /* Success (maybe) - really uncompress the chunk. */36 png_size_t new_size = 0;37 +38 png_charp text = png_malloc_warn(png_ptr,39 prefix_size + expanded_size + 1);40
Note: See TracChangeset
for help on using the changeset viewer.