]> granicus.if.org Git - apache/commitdiff
Fix processing of long chunk extensions
authorNick Kew <niq@apache.org>
Tue, 20 Jul 2010 12:21:47 +0000 (12:21 +0000)
committerNick Kew <niq@apache.org>
Tue, 20 Jul 2010 12:21:47 +0000 (12:21 +0000)
PR 49474

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@965824 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/http/http_filters.c

diff --git a/CHANGES b/CHANGES
index 51e520f96993f2f0acf2473b5e65d477e35b8bf0..be77fc5be9e829a355950bb0f7bd029a5275ea55 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -36,6 +36,9 @@ Changes with Apache 2.3.7
      fails to set r->user.  Log bug and return 500 instead.
      PR 42995 [Nick Kew]
 
+  *) HTTP protocol filter: fix handling of longer chunk extensions
+     PR 49474 [<tee.bee gmx.de>]
+
 Changes with Apache 2.3.6
 
   *) SECURITY: CVE-2009-3555 (cve.mitre.org)
index bd8239be8b736e18e7464ed4ff5e6216e1a77455..06ef6b3ce5580592d945eef2bbc741ab1b0a5d18 100644 (file)
@@ -154,8 +154,9 @@ static apr_status_t get_remaining_chunk_line(http_ctx_t *ctx,
     if (lineend[len - 1] != APR_ASCII_LF) {
         return APR_EAGAIN;
     }
-    /* Line is complete. So reset ctx->linesize for next round. */
+    /* Line is complete. So reset ctx for next round. */
     ctx->linesize = 0;
+    ctx->pos = ctx->chunk_ln;
     return APR_SUCCESS;
 }