From 5c5e8b71ffb828258791b5c72f3274e9070106e0 Mon Sep 17 00:00:00 2001 From: Yann Ylavic Date: Fri, 18 Jul 2014 17:21:16 +0000 Subject: [PATCH] mod_deflate: don't require by using APR_INT32_MAX instead of INT_MAX. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1611725 13f79535-47bb-0310-9956-ffa450edef68 --- modules/filters/mod_deflate.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/modules/filters/mod_deflate.c b/modules/filters/mod_deflate.c index 0acc07db92..bab19c69f3 100644 --- a/modules/filters/mod_deflate.c +++ b/modules/filters/mod_deflate.c @@ -50,8 +50,6 @@ #include "zlib.h" -#include /* for INT_MAX */ - static const char deflateFilterName[] = "DEFLATE"; module AP_MODULE_DECLARE_DATA deflate_module; @@ -970,8 +968,8 @@ static apr_status_t deflate_out_filter(ap_filter_t *f, apr_bucket_delete(e); continue; } - if (len > INT_MAX) { - apr_bucket_split(e, INT_MAX); + if (len > APR_INT32_MAX) { + apr_bucket_split(e, APR_INT32_MAX); apr_bucket_read(e, &data, &len, APR_BLOCK_READ); } @@ -1343,8 +1341,8 @@ static apr_status_t deflate_in_filter(ap_filter_t *f, if (!len) { continue; } - if (len > INT_MAX) { - apr_bucket_split(bkt, INT_MAX); + if (len > APR_INT32_MAX) { + apr_bucket_split(bkt, APR_INT32_MAX); apr_bucket_read(bkt, &data, &len, APR_BLOCK_READ); } @@ -1731,8 +1729,8 @@ static apr_status_t inflate_out_filter(ap_filter_t *f, apr_bucket_delete(e); continue; } - if (len > INT_MAX) { - apr_bucket_split(e, INT_MAX); + if (len > APR_INT32_MAX) { + apr_bucket_split(e, APR_INT32_MAX); apr_bucket_read(e, &data, &len, APR_BLOCK_READ); } -- 2.40.0