coheigea opened a new pull request, #3733: URL: https://github.com/apache/cxf/pull/3733
CXF’s CORBA binding processes each level of nested data with a recursive call, and nothing limited how deep that could go. A message could nest values deeply, either through a recursive IDL type (such as a struct containing a sequence of itself) or by putting Any values inside each other, and overflow the thread’s stack with a StackOverflowError. With JacORB on a default stack, about 2,000 nested Any values, an 8 KB request, were enough. The reader now tracks how deeply nested the current value is, and rejects anything more than 100 levels deep with a CorbaBindingException, the same default depth as the XML limits. Each Any remembers the depth it was read at, and its contents are counted from there, so one limit covers recursive types, nested Any values and mixtures of the two. The limit can be changed with the org.apache.cxf.corba.maxNestingDepth system property, or turned off with -1. -- 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]
