You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2012/06/12 14:03:44 UTC

[jira] [Created] (LUCENE-4141) don't allow Analyzer.offsetGap/posIncGap to be negative

Robert Muir created LUCENE-4141:
-----------------------------------

             Summary: don't allow Analyzer.offsetGap/posIncGap to be negative
                 Key: LUCENE-4141
                 URL: https://issues.apache.org/jira/browse/LUCENE-4141
             Project: Lucene - Java
          Issue Type: Bug
    Affects Versions: 4.0
            Reporter: Robert Muir


unrelated but i thought about this looking at LUCENE-4139: we should check this doesnt make a corrupt index but instead that IW throws a reasonable exception.

--
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


[jira] [Updated] (LUCENE-4141) don't allow Analyzer.offsetGap/posIncGap to be negative

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-4141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Muir updated LUCENE-4141:
--------------------------------

    Attachment: LUCENE-4141_test.patch

here's some initial tests: overflow checks work, but negative values cause things to go backwards undetected.

                
> don't allow Analyzer.offsetGap/posIncGap to be negative
> -------------------------------------------------------
>
>                 Key: LUCENE-4141
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4141
>             Project: Lucene - Java
>          Issue Type: Bug
>    Affects Versions: 4.0
>            Reporter: Robert Muir
>         Attachments: LUCENE-4141_test.patch
>
>
> unrelated but i thought about this looking at LUCENE-4139: we should check this doesnt make a corrupt index but instead that IW throws a reasonable exception.

--
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