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

Markus Koschany apo at moszumanska.debian.org
Wed Feb 22 19:11:07 UTC 2017


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

apo pushed a commit to branch jessie
in repository tomcat7.

commit a067c456898f363573449b6e102edfe6228c2fe2
Author: Markus Koschany <apo at debian.org>
Date:   Sat Feb 18 19:15:37 2017 +0100

    Add BZ57544-infinite-loop-part2.patch
    
    and fix regression due to an incomplete 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..43df92e
--- /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 19:15:02 +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 a1251d6..ac56de1 100644
+--- a/java/org/apache/coyote/http11/AbstractInputBuffer.java
++++ b/java/org/apache/coyote/http11/AbstractInputBuffer.java
+@@ -227,9 +227,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 8a6bb86..c0c97d4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -39,3 +39,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/tomcat7.git



More information about the pkg-java-commits mailing list