This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/8.5.x by this push:
     new d9103b8  Recycle chr and prevChr
d9103b8 is described below

commit d9103b84cde9df160071f23fa6cd06221a673b3e
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue Mar 10 17:32:08 2020 +0000

    Recycle chr and prevChr
---
 java/org/apache/coyote/http11/Http11InputBuffer.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/java/org/apache/coyote/http11/Http11InputBuffer.java 
b/java/org/apache/coyote/http11/Http11InputBuffer.java
index 6c6c91b..aa962c6 100644
--- a/java/org/apache/coyote/http11/Http11InputBuffer.java
+++ b/java/org/apache/coyote/http11/Http11InputBuffer.java
@@ -285,6 +285,8 @@ public class Http11InputBuffer implements InputBuffer, 
ApplicationBufferHandler
         parsingHeader = true;
         swallowInput = true;
 
+        chr = 0;
+        prevChr = 0;
         headerParsePos = HeaderParsePosition.HEADER_START;
         parsingRequestLine = true;
         parsingRequestLinePhase = 0;


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to