Skip to content

Commit

Permalink
Merge pull request #5 from yast/skip-memory-deallocation-m
Browse files Browse the repository at this point in the history
Omit libxml2 memory cleanup to prevent a crash
  • Loading branch information
mvidner committed Jul 19, 2017
2 parents bb3036f + f478a77 commit 289de24
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 11 deletions.
6 changes: 6 additions & 0 deletions package/yast2-xml.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jul 19 09:35:03 UTC 2017 - mvidner@suse.com

- Omit libxml2 memory cleanup to prevent a crash (bsc#1047449).
- 3.3.0

-------------------------------------------------------------------
Wed Nov 13 15:56:18 UTC 2013 - jreidinger@suse.com

Expand Down
29 changes: 19 additions & 10 deletions package/yast2-xml.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# spec file for package yast2-xml
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
Expand All @@ -17,20 +17,28 @@


Name: yast2-xml
Version: 3.1.1
Version: 3.3.0
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}-%{version}.tar.bz2

Group: System/YaST
License: GPL-2.0+
BuildRequires: gcc-c++ libtool doxygen yast2-core-devel libxml2-devel
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: libxml2-devel
BuildRequires: yast2-core-devel
BuildRequires: yast2-devtools >= 3.1.10
Summary: YaST2 - XML Agent
Requires: yast2-core
Provides: yast2-agent-xml yast2-agent-xml-devel yast2-lib-xml
Obsoletes: yast2-agent-xml yast2-agent-xml-devel yast2-lib-xml
Summary: YaST2 - XML Agent
License: GPL-2.0+
Group: System/YaST
Requires: yast2-core
Provides: yast2-agent-xml
Provides: yast2-agent-xml-devel
Provides: yast2-lib-xml
Obsoletes: yast2-agent-xml
Obsoletes: yast2-agent-xml-devel
Obsoletes: yast2-lib-xml

%description
The YaST2 XML agent
Expand All @@ -46,10 +54,11 @@ The YaST2 XML agent

rm -f $RPM_BUILD_ROOT/%{yast_plugindir}/libpy2ag_xml.la


%files
%defattr(-,root,root)
%{yast_plugindir}/libpy2ag_xml.so.*
%{yast_plugindir}/libpy2ag_xml.so
%{yast_scrconfdir}/xml.scr
%doc %{yast_docdir}

%changelog
3 changes: 2 additions & 1 deletion src/XmlAgent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ XmlAgent::XmlAgent() : SCRAgent()
*/
XmlAgent::~XmlAgent()
{
xmlCleanupParser ();
// bsc#1047449, this crashes if ruby uses nokogiri (which also uses libxml2)
// xmlCleanupParser ();
}


Expand Down

0 comments on commit 289de24

Please sign in to comment.