lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-7946) CharTermAttributeImpl.setLength missing bounds check
Date Fri, 01 Sep 2017 03:36:00 GMT

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

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

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

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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message