fixed bad ugly sigsegv bug

This commit is contained in:
Ondrej Vasik 2007-06-21 12:43:36 +00:00
parent ff457f3245
commit 6128f2f339
2 changed files with 26 additions and 1 deletions

20
opensp-sigsegv.patch Normal file
View File

@ -0,0 +1,20 @@
--- OpenSP-1.5.2/lib/ExtendEntityManager.cxx 2005-11-05 10:05:20.000000000 +0100
+++ OpenSP-1.5.2.new/lib/ExtendEntityManager.cxx 2007-06-21 12:56:26.000000000 +0200
@@ -1238,7 +1238,8 @@ StorageObjectSpec::StorageObjectSpec()
}
StorageObjectSpec::StorageObjectSpec(const StorageObjectSpec& x)
-: codingSystemName(x.codingSystemName),
+: storageManager(x.storageManager),
+ codingSystemName(x.codingSystemName),
codingSystem(x.codingSystem),
specId(x.specId),
baseId(x.baseId),
@@ -1253,6 +1254,7 @@ StorageObjectSpec::StorageObjectSpec(con
StorageObjectSpec& StorageObjectSpec::operator=(const StorageObjectSpec& x)
{
if (this != &x) {
+ storageManager = x.storageManager;
codingSystemName = x.codingSystemName;
codingSystem = x.codingSystem;
specId = x.specId;

View File

@ -1,12 +1,13 @@
Summary: SGML and XML parser Summary: SGML and XML parser
Name: opensp Name: opensp
Version: 1.5.2 Version: 1.5.2
Release: 4%{?dist} Release: 5%{?dist}
Requires: sgml-common >= 0.5 Requires: sgml-common >= 0.5
URL: http://openjade.sourceforge.net/ URL: http://openjade.sourceforge.net/
Source: http://download.sourceforge.net/openjade/OpenSP-%{version}.tar.gz Source: http://download.sourceforge.net/openjade/OpenSP-%{version}.tar.gz
Patch0: opensp-multilib.patch Patch0: opensp-multilib.patch
Patch1: opensp-nodeids.patch Patch1: opensp-nodeids.patch
Patch2: opensp-sigsegv.patch
License: Distributable License: Distributable
Group: Applications/Text Group: Applications/Text
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -32,6 +33,7 @@ Header files and libtool library for developing applications that use OpenSP.
%setup -q -n OpenSP-%{version} %setup -q -n OpenSP-%{version}
%patch0 -p1 -b .multilib %patch0 -p1 -b .multilib
%patch1 -p1 -b .nodeids %patch1 -p1 -b .nodeids
%patch2 -p1 -b .sigsegv
%build %build
%configure --disable-dependency-tracking --disable-static --enable-http \ %configure --disable-dependency-tracking --disable-static --enable-http \
@ -99,6 +101,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Thu Jun 21 2007 Ondrej Vasik <ovasik@redhat.com> 1.5.2-5
- fixed SIGSEGV (bug #245104)
* Mon Feb 12 2007 Tim Waugh <twaugh@redhat.com> 1.5.2-4 * Mon Feb 12 2007 Tim Waugh <twaugh@redhat.com> 1.5.2-4
- Fixed build root. - Fixed build root.
- Give IDs to nodes in the release notes source to prevent releasenotes.html - Give IDs to nodes in the release notes source to prevent releasenotes.html