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 (Commented) (JIRA)" <ji...@apache.org> on 2012/03/15 19:33:40 UTC

[jira] [Commented] (LUCENE-3874) bogus positions create a corrumpt index

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

Michael McCandless commented on LUCENE-3874:
--------------------------------------------

+1

Crazy we don't catch this already...
                
> bogus positions create a corrumpt index
> ---------------------------------------
>
>                 Key: LUCENE-3874
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3874
>             Project: Lucene - Java
>          Issue Type: Bug
>    Affects Versions: 3.6, 4.0
>            Reporter: Robert Muir
>         Attachments: LUCENE-3874.patch, LUCENE-3874_test.patch
>
>
> Its pretty common that positionIncrement can overflow, this happens really easily 
> if people write analyzers that don't clearAttributes().
> It used to be the case that if this happened (and perhaps still is in 3.x, i didnt check),
> that IW would throw an exception.
> But i couldnt find the code checking this, I wrote a test and it makes a corrumpt index...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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