Blame SOURCES/libxml2-2.9.0-do-not-check-crc.patch

6f3f5b
diff -up libxml2-2.9.0/xzlib.c.do-not-check-crc libxml2-2.9.0/xzlib.c
6f3f5b
--- libxml2-2.9.0/xzlib.c.do-not-check-crc	2012-09-11 05:52:46.000000000 +0200
6f3f5b
+++ libxml2-2.9.0/xzlib.c	2012-11-19 19:28:42.431700534 +0100
6f3f5b
@@ -552,17 +552,20 @@ xz_decomp(xz_statep state)
6f3f5b
 #ifdef HAVE_ZLIB_H
6f3f5b
         if (state->how == GZIP) {
6f3f5b
             if (gz_next4(state, &crc) == -1 || gz_next4(state, &len) == -1) {
6f3f5b
-                xz_error(state, LZMA_DATA_ERROR, "unexpected end of file");
6f3f5b
-                return -1;
6f3f5b
-            }
6f3f5b
-            if (crc != state->zstrm.adler) {
6f3f5b
-                xz_error(state, LZMA_DATA_ERROR, "incorrect data check");
6f3f5b
-                return -1;
6f3f5b
-            }
6f3f5b
-            if (len != (state->zstrm.total_out & 0xffffffffL)) {
6f3f5b
-                xz_error(state, LZMA_DATA_ERROR, "incorrect length check");
6f3f5b
-                return -1;
6f3f5b
-            }
6f3f5b
+                /*
6f3f5b
+               xz_error(state, LZMA_DATA_ERROR, "unexpected end of file");
6f3f5b
+               return -1;
6f3f5b
+                */
6f3f5b
+            } else {
6f3f5b
+               if (crc != state->zstrm.adler) {
6f3f5b
+                   xz_error(state, LZMA_DATA_ERROR, "incorrect data check");
6f3f5b
+                   return -1;
6f3f5b
+               }
6f3f5b
+               if (len != (state->zstrm.total_out & 0xffffffffL)) {
6f3f5b
+                   xz_error(state, LZMA_DATA_ERROR, "incorrect length check");
6f3f5b
+                   return -1;
6f3f5b
+               }
6f3f5b
+           }
6f3f5b
             state->strm.avail_in = 0;
6f3f5b
             state->strm.next_in = NULL;
6f3f5b
             state->strm.avail_out = 0;