workaround for crc/len check failure, rhbz#877567
This commit is contained in:
parent
d6775556a1
commit
c2fe6f62d0
35
libxml2-2.9.0-do-not-check-crc.patch
Normal file
35
libxml2-2.9.0-do-not-check-crc.patch
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
diff -up libxml2-2.9.0/xzlib.c.do-not-check-crc libxml2-2.9.0/xzlib.c
|
||||||
|
--- libxml2-2.9.0/xzlib.c.do-not-check-crc 2012-09-11 05:52:46.000000000 +0200
|
||||||
|
+++ libxml2-2.9.0/xzlib.c 2012-11-19 19:28:42.431700534 +0100
|
||||||
|
@@ -552,17 +552,20 @@ xz_decomp(xz_statep state)
|
||||||
|
#ifdef HAVE_ZLIB_H
|
||||||
|
if (state->how == GZIP) {
|
||||||
|
if (gz_next4(state, &crc) == -1 || gz_next4(state, &len) == -1) {
|
||||||
|
- xz_error(state, LZMA_DATA_ERROR, "unexpected end of file");
|
||||||
|
- return -1;
|
||||||
|
- }
|
||||||
|
- if (crc != state->zstrm.adler) {
|
||||||
|
- xz_error(state, LZMA_DATA_ERROR, "incorrect data check");
|
||||||
|
- return -1;
|
||||||
|
- }
|
||||||
|
- if (len != (state->zstrm.total_out & 0xffffffffL)) {
|
||||||
|
- xz_error(state, LZMA_DATA_ERROR, "incorrect length check");
|
||||||
|
- return -1;
|
||||||
|
- }
|
||||||
|
+ /*
|
||||||
|
+ xz_error(state, LZMA_DATA_ERROR, "unexpected end of file");
|
||||||
|
+ return -1;
|
||||||
|
+ */
|
||||||
|
+ } else {
|
||||||
|
+ if (crc != state->zstrm.adler) {
|
||||||
|
+ xz_error(state, LZMA_DATA_ERROR, "incorrect data check");
|
||||||
|
+ return -1;
|
||||||
|
+ }
|
||||||
|
+ if (len != (state->zstrm.total_out & 0xffffffffL)) {
|
||||||
|
+ xz_error(state, LZMA_DATA_ERROR, "incorrect length check");
|
||||||
|
+ return -1;
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
state->strm.avail_in = 0;
|
||||||
|
state->strm.next_in = NULL;
|
||||||
|
state->strm.avail_out = 0;
|
@ -1,7 +1,7 @@
|
|||||||
Summary: Library providing XML and HTML support
|
Summary: Library providing XML and HTML support
|
||||||
Name: libxml2
|
Name: libxml2
|
||||||
Version: 2.9.0
|
Version: 2.9.0
|
||||||
Release: 2%{?dist}%{?extra_release}
|
Release: 3%{?dist}%{?extra_release}
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Source: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz
|
Source: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz
|
||||||
@ -9,6 +9,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|||||||
BuildRequires: python python-devel zlib-devel pkgconfig xz-devel
|
BuildRequires: python python-devel zlib-devel pkgconfig xz-devel
|
||||||
URL: http://xmlsoft.org/
|
URL: http://xmlsoft.org/
|
||||||
Patch0: libxml2-multilib.patch
|
Patch0: libxml2-multilib.patch
|
||||||
|
Patch1: libxml2-2.9.0-do-not-check-crc.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This library allows to manipulate XML files. It includes support
|
This library allows to manipulate XML files. It includes support
|
||||||
@ -68,6 +69,8 @@ at parse time or later once the document has been modified.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
# workaround for #877567 - Very weird bug gzip decompression bug in "recent" libxml2 versions
|
||||||
|
%patch1 -p1 -b .do-not-check-crc
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
@ -150,6 +153,9 @@ rm -fr %{buildroot}
|
|||||||
%doc doc/python.html
|
%doc doc/python.html
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 19 2012 Jaroslav Reznik <jreznik@redhat.com> - 2.9.0-3
|
||||||
|
- workaround for crc/len check failure, rhbz#877567
|
||||||
|
|
||||||
* Thu Oct 11 2012 Daniel Veillard <veillard@redhat.com> - 2.9.0-2
|
* Thu Oct 11 2012 Daniel Veillard <veillard@redhat.com> - 2.9.0-2
|
||||||
- remaining cleanups from merge bug rhbz#226079
|
- remaining cleanups from merge bug rhbz#226079
|
||||||
- do not put the docs in the main package, only in -devel rhbz#864731
|
- do not put the docs in the main package, only in -devel rhbz#864731
|
||||||
|
Loading…
Reference in New Issue
Block a user