8
0

Accepting request 184912 from devel:languages:perl

- updated to 2.0019
     - Correct typos reported in RT #86599.
         - https://rt.cpan.org/Ticket/Display.html?id=86599
         - Thanks to dsteinbrunner.
 
     - Revert previous change of minimal version of libxml2.
         - This change proved to be unpopular and didn't prevent
         the CPAN test failures.
         - By SHLOMIF
 
     - Made the minimal version of libxml2 2.9.0 as previous versions were
     too buggy due to spuriourous CPAN test failures.
         - Please upgrade.
         - By SHLOMIF
 
     - Don't enable XML_PARSE_HUGE by default.
         - Fix the previous version due to a mercurial SNAFU.
 
     - Don't enable XML_PARSE_HUGE by default.
         - https://bitbucket.org/shlomif/perl-xml-libxml/pull-request/19
         - Thanks to Grant McLean ( https://metacpan.org/author/GRANTM ) for
         the bug report and patch.
 
     - Got 40reader_mem_error.t to not fetch the external DTDs.
         - https://rt.cpan.org/Public/Bug/Display.html?id=81703
         - Thanks to Alexandr Ciornii (CHORNY) for the report and Slaven
         Rezic (SREZIC) for the analysis and a proposed fix.
 
     - Fix a memory error (double-free) in XML::LibXML::Reader if we reached
     EOF and

OBS-URL: https://build.opensuse.org/request/show/184912
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-XML-LibXML?expand=0&rev=31
This commit is contained in:
Stephan Kulow
2013-07-30 17:10:56 +00:00
committed by Git OBS Bridge
5 changed files with 48 additions and 45 deletions

BIN
XML-LibXML-1.95.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
XML-LibXML-2.0019.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,33 +0,0 @@
STRLEN has 64 bits here and int has 32, so the (int*) cast in
XML::LibXML::Document::toStringHTML() makes htmlDocDumpMemory() store
the 32-bit length of the result into a 64-bit variable. Depending on
the endianness, it either works OK (LE) or corrupts the variable (BE)
Just use an 'int' instead, and cast it to an STRLEN later in the
newSVpvn() call.
---
LibXML.xs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/LibXML.xs b/LibXML.xs
index 8ac23bf..581cc48 100644
--- a/LibXML.xs
+++ b/LibXML.xs
@@ -2930,13 +2930,13 @@ toStringHTML(self)
XML::LibXML::Document::serialize_html = 1
PREINIT:
xmlChar *result=NULL;
- STRLEN len = 0;
+ int len = 0;
PREINIT_SAVED_ERROR
CODE:
PERL_UNUSED_VAR(ix);
xs_warn( "use no formated toString!" );
INIT_ERROR_HANDLER;
- htmlDocDumpMemory(self, &result, (int*)&len);
+ htmlDocDumpMemory(self, &result, &len);
CLEANUP_ERROR_HANDLER;
REPORT_ERROR(0);
--
1.7.10

View File

@@ -1,3 +1,42 @@
-------------------------------------------------------------------
Sat Jul 27 11:59:01 UTC 2013 - coolo@suse.com
- updated to 2.0019
- Correct typos reported in RT #86599.
- https://rt.cpan.org/Ticket/Display.html?id=86599
- Thanks to dsteinbrunner.
- Revert previous change of minimal version of libxml2.
- This change proved to be unpopular and didn't prevent
the CPAN test failures.
- By SHLOMIF
- Made the minimal version of libxml2 2.9.0 as previous versions were
too buggy due to spuriourous CPAN test failures.
- Please upgrade.
- By SHLOMIF
- Don't enable XML_PARSE_HUGE by default.
- Fix the previous version due to a mercurial SNAFU.
- Don't enable XML_PARSE_HUGE by default.
- https://bitbucket.org/shlomif/perl-xml-libxml/pull-request/19
- Thanks to Grant McLean ( https://metacpan.org/author/GRANTM ) for
the bug report and patch.
- Got 40reader_mem_error.t to not fetch the external DTDs.
- https://rt.cpan.org/Public/Bug/Display.html?id=81703
- Thanks to Alexandr Ciornii (CHORNY) for the report and Slaven
Rezic (SREZIC) for the analysis and a proposed fix.
- Fix a memory error (double-free) in XML::LibXML::Reader if we reached
EOF and
then called destroy.
- discovered by Shlomi Fish.
- Fixed by Shlomi Fish.
- see t/40reader_mem_error.t
- remove upstreamed perl-XML-LibXML-bigendian.patch
-------------------------------------------------------------------
Fri May 25 08:40:07 UTC 2012 - dvaleev@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-XML-LibXML
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,28 +16,26 @@
#
Name: perl-XML-LibXML
Version: 1.95
Version: 2.0019
Release: 0
License: GPL-1.0+ or Artistic-1.0
%define cpan_name XML-LibXML
Summary: Perl Binding for libxml2
Url: http://search.cpan.org/dist/XML-LibXML/
License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/XML-LibXML/
Source: http://www.cpan.org/authors/id/S/SH/SHLOMIF/%{cpan_name}-%{version}.tar.gz
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.56
BuildRequires: perl(XML::NamespaceSupport) >= 1.07
BuildRequires: perl(XML::SAX) >= 0.11
BuildRequires: perl-macros
BuildRequires: pkgconfig(libxml-2.0) >= 2.6.16
BuildRequires: pkgconfig(libxml-2.0) >= 2.9.0
Requires: perl(XML::NamespaceSupport) >= 1.07
Requires: perl(XML::SAX) >= 0.11
Provides: perl-XML-LibXML-Common = %{version}
Obsoletes: perl-XML-LibXML-Common < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch: perl-XML-LibXML-bigendian.patch
%{perl_requires}
%description
@@ -48,7 +46,6 @@ the high performance DOM implementation.
%prep
%setup -q -n %{cpan_name}-%{version}
%patch -p1
%build
# [2,7,1,0], # broken release, broken utf-16