elharo opened a new pull request, #118: URL: https://github.com/apache/xerces-j/pull/118
The XPointer parser could loop indefinitely when an expression ended with an unmatched opening parenthesis. The parenthesis-balancing loop checked the next token without consuming it and checked for the wrong token type. This updates the loop to consume trailing close parentheses and stop on any other token so malformed expressions are rejected normally. Added a regression test with a parse timeout. -- 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]
