[tomcat8] 01/02: Add BZ57544-infinite-loop-part2.patch

Markus Koschany apo at moszumanska.debian.org
Wed Feb 22 19:09:45 UTC 2017


This is an automated email from the git hooks/post-receive script.

apo pushed a commit to branch jessie
in repository tomcat8.

commit 3766b32802029e145d7ff1f7b0304faa13539a17
Author: Markus Koschany <apo at debian.org>
Date:   Sat Feb 18 18:40:17 2017 +0100

    Add BZ57544-infinite-loop-part2.patch
    
    Fix regression (400 HTTP errors) due to the fix for CVE-2017-6056.
---
 debian/patches/BZ57544-infinite-loop-part2.patch | 25 ++++++++++++++++++++++++
 debian/patches/series                            |  1 +
 2 files changed, 26 insertions(+)

diff --git a/debian/patches/BZ57544-infinite-loop-part2.patch b/debian/patches/BZ57544-infinite-loop-part2.patch
new file mode 100644
index 0000000..b36f9e6
--- /dev/null
+++ b/debian/patches/BZ57544-infinite-loop-part2.patch
@@ -0,0 +1,25 @@
+From: Markus Koschany <apo at debian.org>
+Date: Sat, 18 Feb 2017 18:39:09 +0100
+Subject: BZ57544-infinite-loop-part2
+
+---
+ java/org/apache/coyote/http11/AbstractInputBuffer.java | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/java/org/apache/coyote/http11/AbstractInputBuffer.java b/java/org/apache/coyote/http11/AbstractInputBuffer.java
+index 2aef369..1fbeb27 100644
+--- a/java/org/apache/coyote/http11/AbstractInputBuffer.java
++++ b/java/org/apache/coyote/http11/AbstractInputBuffer.java
+@@ -237,9 +237,10 @@ public abstract class AbstractInputBuffer<S> implements InputBuffer{
+         // Copy leftover bytes to the beginning of the buffer
+         if (lastValid - pos > 0 && pos > 0) {
+             System.arraycopy(buf, pos, buf, 0, lastValid - pos);
+-            lastValid = lastValid - pos;
+-            pos = 0;
+         }
++        // Always reset pos to zero
++        lastValid = lastValid - pos;
++        pos = 0;
+ 
+         // Recycle filters
+         for (int i = 0; i <= lastActiveFilter; i++) {
diff --git a/debian/patches/series b/debian/patches/series
index 0351767..313199b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -34,3 +34,4 @@ BZ-57377.patch
 CVE-2016-8735.patch
 CVE-2016-8745.patch
 BZ57544-infinite-loop.patch
+BZ57544-infinite-loop-part2.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/tomcat8.git



More information about the pkg-java-commits mailing list