From 03b7fb2d623ad6a4c1a4e4ec7c011a6222b9214d Mon Sep 17 00:00:00 2001 From: dmalcolm Date: Jul 02 2010 15:49:25 +0000 Subject: - Fix an incompatibility between pyexpat and the system expat-2.0.1 that led to a segfault running test_pyexpat.py (patch 110; upstream issue 9054; rhbz#610312) --- diff --git a/python-3.1.2-fix-expat-issue9054.patch b/python-3.1.2-fix-expat-issue9054.patch new file mode 100644 index 0000000..f1a4640 --- /dev/null +++ b/python-3.1.2-fix-expat-issue9054.patch @@ -0,0 +1,14 @@ +Index: Modules/pyexpat.c +=================================================================== +--- Modules/pyexpat.c (revision 81539) ++++ Modules/pyexpat.c (working copy) +@@ -415,6 +415,9 @@ + PyObject *args; + PyObject *temp; + ++ if (!have_handler(self, CharacterData)) ++ return -1; ++ + args = PyTuple_New(1); + if (args == NULL) + return -1; diff --git a/python3.spec b/python3.spec index 7cf210d..4f331b0 100644 --- a/python3.spec +++ b/python3.spec @@ -40,7 +40,7 @@ Summary: Version 3 of the Python programming language aka Python 3000 Name: python3 Version: %{pybasever}.2 -Release: 10%{?dist} +Release: 11%{?dist} License: Python Group: Development/Languages Source: http://python.org/ftp/python/%{version}/Python-%{version}.tar.bz2 @@ -219,6 +219,11 @@ Patch108: python-3.1.2-CVE-2010-2089.patch # the old layout before the whitespace cleanup of release31-maint in r81033): Patch109: python-3.1.2-CVE-2008-5983.patch +# Fix an incompatibility between pyexpat and the system expat-2.0.1 that led to +# a segfault running test_pyexpat.py (rhbz:610312) +# Sent upstream as http://bugs.python.org/issue9054 +Patch110: python-3.1.2-fix-expat-issue9054.patch + BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: readline-devel, openssl-devel, gmp-devel BuildRequires: ncurses-devel, gdbm-devel, zlib-devel, expat-devel @@ -377,6 +382,8 @@ rm -r Modules/zlib || exit 1 %patch108 -p1 -b .CVE-2010-2089 %patch109 -p1 -b .CVE-2008-5983 +%patch110 -p0 -b .fix-expat-issue9054 + # Currently (2010-01-15), http://docs.python.org/library is for 2.6, and there # are many differences between 2.6 and the Python 3 library. # @@ -1057,6 +1064,10 @@ rm -fr %{buildroot} %changelog +* Fri Jul 2 2010 David Malcolm - 3.1.2-11 +- Fix an incompatibility between pyexpat and the system expat-2.0.1 that led to +a segfault running test_pyexpat.py (patch 110; upstream issue 9054; rhbz#610312) + * Fri Jun 4 2010 David Malcolm - 3.1.2-10 - ensure that the compiler is invoked with "-fwrapv" (rhbz#594819) - reformat whitespace in audioop.c (patch 106)