pjfanning opened a new pull request, #1386:
URL: https://github.com/apache/poi/pull/1386

   `FormulaParser` is a recursive descent parser, so formulas with very deeply 
nested parentheses, function calls or unary signs (e.g. thousands of `(`) 
exhaust the thread stack and fail with `StackOverflowError`.
   
   This counts the nesting level as the parser descends into parentheses, 
function arguments and unary `+`/`-`, and throws a `FormulaParseException` once 
it exceeds `FormulaParser.getMaxNestingDepth()`.
   
   * default limit is 128 (Excel documents a limit of 64 nested functions)
   * configurable via `FormulaParser.setMaxNestingDepth(int)`
   * sibling sub-expressions each get the full allowance; only the depth of 
nesting counts
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to