You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Christoph Kaser (JIRA)" <ji...@apache.org> on 2015/03/13 13:29:38 UTC
[jira] [Updated] (LUCENE-6358) UnescapedCharSequence.toLowerCase
throws ArrayIndexOutOfBoundsException for certain input strings
[ https://issues.apache.org/jira/browse/LUCENE-6358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christoph Kaser updated LUCENE-6358:
------------------------------------
Summary: UnescapedCharSequence.toLowerCase throws ArrayIndexOutOfBoundsException for certain input strings (was: UnescapedCharSequence.toLowerCase throws ArrayIndexOutOfBoundsException when for certain input strings)
> UnescapedCharSequence.toLowerCase throws ArrayIndexOutOfBoundsException for certain input strings
> -------------------------------------------------------------------------------------------------
>
> Key: LUCENE-6358
> URL: https://issues.apache.org/jira/browse/LUCENE-6358
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/queryparser
> Affects Versions: 5.0
> Reporter: Christoph Kaser
> Priority: Minor
> Attachments: LUCENE-6358-fix.patch, LUCENE-6358-test.patch
>
>
> The static toLowerCase-method of UnescapedCharSequence does nto account for locales in which the length of the result of String.toLowerCase is not the same as the length of the input string. This causes an ArrayIndexOutOfBoundsException, because wasEscaped and the chars array are not of the same length.
> (See attached test and patch)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org