Blame SOURCES/httpd-2.4.6-r1604460.patch

008793
--- a/modules/filters/mod_deflate.c	2014/02/26 15:24:07	1572091
008793
+++ b/modules/filters/mod_deflate.c	2014/02/26 15:30:25	1572092
008793
@@ -1125,7 +1125,8 @@
008793
                     }
008793
                     ctx->stream.next_in += 4;
008793
                     compLen = getLong(ctx->stream.next_in);
008793
-                    if (ctx->stream.total_out != compLen) {
008793
+                    /* gzip stores original size only as 4 byte value */
008793
+                    if ((ctx->stream.total_out & 0xFFFFFFFF) != compLen) {
008793
                         inflateEnd(&ctx->stream);
008793
                         ap_log_rerror(APLOG_MARK, APLOG_WARNING, 0, r, APLOGNO(01395)
008793
                                       "Zlib: Length %ld of inflated data does "
008793
@@ -1322,7 +1323,8 @@
008793
                 }
008793
                 ctx->validation_buffer += VALIDATION_SIZE / 2;
008793
                 compLen = getLong(ctx->validation_buffer);
008793
-                if (ctx->stream.total_out != compLen) {
008793
+                /* gzip stores original size only as 4 byte value */
008793
+                if ((ctx->stream.total_out & 0xFFFFFFFF) != compLen) {
008793
                     ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(01400)
008793
                                   "Zlib: Length of inflated stream invalid");
008793
                     return APR_EGENERAL;