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

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