You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2017/09/05 09:55:00 UTC
[jira] [Updated] (LUCENE-7956) ICUNormalizer2CharFilter may fail
with a StackOverFlow error
[ https://issues.apache.org/jira/browse/LUCENE-7956?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adrien Grand updated LUCENE-7956:
---------------------------------
Attachment: LUCENE-7956.patch
Here is a patch
- Recursion has been replaced with a while loop
- It uses CharacterUtils, which is aware of supplementary chars, in order to fill the buffer. This helps avoid loading more data in memory in the case that the last char in the buffer is a surrogate.
> ICUNormalizer2CharFilter may fail with a StackOverFlow error
> ------------------------------------------------------------
>
> Key: LUCENE-7956
> URL: https://issues.apache.org/jira/browse/LUCENE-7956
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Adrien Grand
> Priority: Minor
> Attachments: LUCENE-7956.patch
>
>
> ICUNormalizer2CharFilter recursively fills up a buffer of 128 chars until the last char is neither a surrogate nor inert. On large inputs of non inert characters, this can cause a stack overflow error.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org