|
|
04fb17 |
--- java/org/apache/tomcat/util/http/fileupload/MultipartStream.java.orig 2016-06-27 11:26:04.561937786 -0400
|
|
|
04fb17 |
+++ java/org/apache/tomcat/util/http/fileupload/MultipartStream.java 2016-06-27 11:24:26.556751185 -0400
|
|
|
04fb17 |
@@ -282,11 +282,10 @@ public class MultipartStream {
|
|
|
04fb17 |
byte[] boundary,
|
|
|
04fb17 |
int bufSize,
|
|
|
04fb17 |
ProgressNotifier pNotifier) {
|
|
|
04fb17 |
- this.input = input;
|
|
|
04fb17 |
- this.bufSize = bufSize;
|
|
|
04fb17 |
- this.buffer = new byte[bufSize];
|
|
|
04fb17 |
- this.notifier = pNotifier;
|
|
|
04fb17 |
|
|
|
04fb17 |
+ if (boundary == null) {
|
|
|
04fb17 |
+ throw new IllegalArgumentException("boundary may not be null");
|
|
|
04fb17 |
+ }
|
|
|
04fb17 |
// We prepend CR/LF to the boundary to chop trailing CR/LF from
|
|
|
04fb17 |
// body-data tokens.
|
|
|
04fb17 |
this.boundaryLength = boundary.length + BOUNDARY_PREFIX.length;
|
|
|
04fb17 |
@@ -294,6 +293,12 @@ public class MultipartStream {
|
|
|
04fb17 |
throw new IllegalArgumentException(
|
|
|
04fb17 |
"The buffer size specified for the MultipartStream is too small");
|
|
|
04fb17 |
}
|
|
|
04fb17 |
+
|
|
|
04fb17 |
+ this.input = input;
|
|
|
04fb17 |
+ this.bufSize = Math.max(bufSize, boundaryLength*2);
|
|
|
04fb17 |
+ this.buffer = new byte[this.bufSize];
|
|
|
04fb17 |
+ this.notifier = pNotifier;
|
|
|
04fb17 |
+
|
|
|
04fb17 |
this.boundary = new byte[this.boundaryLength];
|
|
|
04fb17 |
this.keepRegion = this.boundary.length;
|
|
|
04fb17 |
|
|
|
04fb17 |
--- webapps/docs/changelog.xml.orig 2016-06-27 11:26:15.578958762 -0400
|
|
|
04fb17 |
+++ webapps/docs/changelog.xml 2016-06-27 11:25:26.024864412 -0400
|
|
|
04fb17 |
@@ -57,6 +57,16 @@
|
|
|
04fb17 |
They eventually become mixed with the numbered issues. (I.e., numbered
|
|
|
04fb17 |
issues do not "pop up" wrt. others).
|
|
|
04fb17 |
-->
|
|
|
04fb17 |
+<section name="Tomcat 7.0.69-4 (csutherl)">
|
|
|
04fb17 |
+ <subsection name="Other">
|
|
|
04fb17 |
+ <changelog>
|
|
|
04fb17 |
+ <update>
|
|
|
04fb17 |
+ Update the internal fork of Commons File Upload to r1743698 (1.3.1 plus
|
|
|
04fb17 |
+ additional fixes). (markt)
|
|
|
04fb17 |
+ </update>
|
|
|
04fb17 |
+ </changelog>
|
|
|
04fb17 |
+ </subsection>
|
|
|
04fb17 |
+</section>
|
|
|
04fb17 |
<section name="Tomcat 7.0.69 (violetagg)">
|
|
|
04fb17 |
<subsection name="Catalina">
|
|
|
04fb17 |
<changelog>
|