[python-pillow/f19] Add patch to fix memory corruption

Sandro Mani smani at fedoraproject.org
Wed Aug 28 19:58:38 UTC 2013


commit f93853aa3f01860f6600d8ffefc8f05cd9965e34
Author: Sandro Mani <manisandro at gmail.com>
Date:   Wed Aug 28 21:58:23 2013 +0200

    Add patch to fix memory corruption

 python-pillow.spec |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/python-pillow.spec b/python-pillow.spec
index 0f590bd..cd63646 100644
--- a/python-pillow.spec
+++ b/python-pillow.spec
@@ -23,7 +23,7 @@
 
 Name:           python-pillow
 Version:        2.0.0
-Release:        10%{?snap}%{?dist}
+Release:        11%{?snap}%{?dist}
 Summary:        Python image processing library
 
 # License: see http://www.pythonware.com/products/pil/license.htm
@@ -38,6 +38,8 @@ Source0:        https://github.com/python-imaging/Pillow/tarball/%{commit}/pytho
 Patch0:         python-pillow-archs.patch
 # Fix test hardcoded for little-endian
 Patch1:         python-pillow_endian.patch
+# Fix memory corruption caused by incorrect palette size
+Patch2:         python-pillow_bytearray.patch
 
 BuildRequires:  python2-devel
 BuildRequires:  python-setuptools
@@ -206,6 +208,7 @@ PIL image wrapper for Qt.
 %setup -q -n python-imaging-Pillow-%{shortcommit}
 %patch0 -p1 -b .archs
 %patch1 -p1 -b .endian
+%patch2 -p1 -b .bytearray
 
 %if %{with_python3}
 # Create Python 3 source tree
@@ -363,6 +366,9 @@ popd
 %endif
 
 %changelog
+* Wed Aug 28 2013 Sandro Mani <manisandro at gmail.com> - 2.0.0-11.gitd1c6db8
+- Add patch to fix memory corruption caused by invalid palette size, see rhbz#1001122
+
 * Mon May 13 2013 Roman Rakus <rrakus at redhat.com> - 2.0.0-10
 - Build without webp support on s390* archs
   Resolves: rhbz#962059


More information about the scm-commits mailing list