Blame SOURCES/tomcat-7.0.76-CVE-2018-1336.patch

9a9096
--- java/org/apache/tomcat/util/buf/Utf8Decoder.java.orig	2018-10-01 11:41:20.080777790 -0400
9a9096
+++ java/org/apache/tomcat/util/buf/Utf8Decoder.java	2018-10-01 11:42:07.421663409 -0400
9a9096
@@ -277,6 +277,11 @@ public class Utf8Decoder extends Charset
9a9096
                 outRemaining--;
9a9096
             } else {
9a9096
                 if (outRemaining < 2) {
9a9096
+                    // Encoded with 4 bytes. inIndex currently points
9a9096
+                    // to the final byte. Move it back to first byte.
9a9096
+                    inIndex -= 3;
9a9096
+                    in.position(inIndex - in.arrayOffset());
9a9096
+                    out.position(outIndex - out.arrayOffset());
9a9096
                     return CoderResult.OVERFLOW;
9a9096
                 }
9a9096
                 cArr[outIndex++] = (char) ((jchar >> 0xA) + 0xD7C0);
9a9096
--- webapps/docs/changelog.xml.orig	2018-10-01 11:47:17.700912507 -0400
9a9096
+++ webapps/docs/changelog.xml	2018-10-01 11:47:40.889856277 -0400
9a9096
@@ -57,6 +57,16 @@
9a9096
   They eventually become mixed with the numbered issues. (I.e., numbered
9a9096
   issues do not "pop up" wrt. others).
9a9096
 -->
9a9096
+<section name="Tomcat 7.0.76-8 (csutherl)">
9a9096
+  <subsection name="Catalina">
9a9096
+    <changelog>
9a9096
+      <fix>
9a9096
+        Improve handing of overflow in the UTF-8 decoder with supplementary
9a9096
+        characters. (markt)
9a9096
+      </fix>
9a9096
+    </changelog>
9a9096
+  </subsection>
9a9096
+</section>
9a9096
 <section name="Tomcat 7.0.76-3 (csutherl)">
9a9096
   <subsection name="Catalina">
9a9096
     <changelog>