Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B69F49803 for ; Thu, 15 Mar 2012 19:32:59 +0000 (UTC) Received: (qmail 12989 invoked by uid 500); 15 Mar 2012 19:32:58 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 12769 invoked by uid 500); 15 Mar 2012 19:32:58 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 12761 invoked by uid 99); 15 Mar 2012 19:32:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2012 19:32:58 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2012 19:32:57 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 69FDB22204 for ; Thu, 15 Mar 2012 19:32:37 +0000 (UTC) Date: Thu, 15 Mar 2012 19:32:37 +0000 (UTC) From: "Robert Muir (Resolved) (JIRA)" To: dev@lucene.apache.org Message-ID: <461254218.20586.1331839957435.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1113700899.19919.1331834137619.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (LUCENE-3874) bogus positions create a corrumpt index MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-3874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Muir resolved LUCENE-3874. --------------------------------- Resolution: Fixed Fix Version/s: 4.0 3.6 > 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 > Fix For: 3.6, 4.0 > > 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