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

ASF subversion and git services commented on LUCENE-7946:
---------------------------------------------------------

Commit d7379f1dd2baee50d7dfd2fb8767c968c982c001 in lucene-solr's branch 
refs/heads/master from [~rcmuir]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=d7379f1 ]

LUCENE-7946: Fix CharTermAttribute.setLength's bounds check


> CharTermAttributeImpl.setLength missing bounds check
> ----------------------------------------------------
>
>                 Key: LUCENE-7946
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7946
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/analysis
>            Reporter: Robert Muir
>         Attachments: LUCENE-7946.patch
>
>
> CharTermAttribute.setLength partially checks for out of bounds values 
> (exceeds term buffer array size) but doesn't check for negative values.
> This can be confusing as then the negative length will only fail or misbehave 
> much later, for example with the first iteration of LUCENE-7940. It fails 
> later only when we call toString() afterwards.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to