reta commented on code in PR #3301:
URL: https://github.com/apache/cxf/pull/3301#discussion_r3555317415
##########
rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/BinaryDataProvider.java:
##########
@@ -105,7 +110,7 @@ public T readFrom(Class<T> clazz, Type genericType,
Annotation[] annotations, Me
return clazz.cast(new InputStreamReader(is,
getEncoding(type)));
}
if (byte[].class.isAssignableFrom(clazz)) {
- return clazz.cast(IOUtils.readBytesFromStream(is));
+ return clazz.cast(IOUtils.readBytesFromStream(is, maxSize));
}
if (File.class.isAssignableFrom(clazz)) {
Review Comment:
This is desired, we should not OOM
--
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]