You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2014/05/11 00:16:30 UTC

[jira] [Updated] (LUCENE-5659) SpecialOperations.isFinite hits StackOverflowError on automaton accepting long strings

     [ https://issues.apache.org/jira/browse/LUCENE-5659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael McCandless updated LUCENE-5659:
---------------------------------------

    Attachment: LUCENE-5659.patch

Patch, I think it's ready.

> SpecialOperations.isFinite hits StackOverflowError on automaton accepting long strings
> --------------------------------------------------------------------------------------
>
>                 Key: LUCENE-5659
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5659
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 4.9, 5.0
>
>         Attachments: LUCENE-5659.patch
>
>
> Just like we fixed getFiniteStrings to not consume stack in proportion to the longest string accepted by the automaton (LUCENE-5628), isFinite has the same limitation.  The fix is pretty simple; I just share the code from getFiniteStrings, but allocate two BitSets up front like the current impl.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org