reta commented on code in PR #3301:
URL: https://github.com/apache/cxf/pull/3301#discussion_r3555298936


##########
core/src/main/java/org/apache/cxf/helpers/IOUtils.java:
##########
@@ -228,6 +232,10 @@ public static int copy(final InputStream input, final 
OutputStream output,
             output.write(buffer, 0, n);
             total += n;
             n = input.read(buffer);
+
+            if (maxSize > 0 /* -1 sets to unlimited */ && total > maxSize) {

Review Comment:
   It will allocate buffer at max



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to