lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (Updated) (JIRA)" <>
Subject [jira] [Updated] (LUCENE-3874) bogus positions create a corrumpt index
Date Thu, 15 Mar 2012 18:29:38 GMT


Robert Muir updated LUCENE-3874:

    Attachment: LUCENE-3874.patch

first cut at a patch, throws IllegalArgumentException and aborts the doc (ensuring fieldState
never sees the overflow since i dont trust what happens to it after this!)
> bogus positions create a corrumpt index
> ---------------------------------------
>                 Key: LUCENE-3874
>                 URL:
>             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:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message