coheigea opened a new pull request, #3721:
URL: https://github.com/apache/cxf/pull/3721

   SoapArrayType created each SOAP encoded array at the size declared in
   its arrayType attribute, however many elements were actually sent. A
   small message declaring a huge array, such as
   arrayType="xsd:int[2000000000]", could therefore make the service
   allocate many gigabytes. The product of the declared dimensions could
   also overflow.
   
   Check the declared size before anything is allocated. Reject sizes that
   don't fit in an int, and limit the total number of array elements read
   from a message to 1000000 by default. The limit can be set as a message
   property or a system property, org.apache.cxf.aegis.encoded.maxArrayElements,
   and a negative value disables it. To read the message property, Aegis
   readers now keep the message in their Context.
   
   Also reject sparse array positions outside the declared dimensions.


-- 
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