[ 
https://issues.apache.org/jira/browse/LUCENE-10181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17429287#comment-17429287
 ] 

Adrien Grand commented on LUCENE-10181:
---------------------------------------

I'm not familiar with this code but it looks like it's already tracking the 
recursion depth for other purposes, so maybe we could fail when the recursion 
depth goes beyond an arbitrary threshold?

> GraphTokenStreamFiniteStrings#articulationPointsRecurse can run into stack 
> overflows
> ------------------------------------------------------------------------------------
>
>                 Key: LUCENE-10181
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10181
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Adrien Grand
>            Priority: Minor
>
> If provided with a very long query string, 
> GraphTokenStreamFiniteStrings#articulationPointsRecurse may run into a 
> StackOverflowError.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to