Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 91999 invoked from network); 12 Jul 2007 22:53:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jul 2007 22:53:28 -0000 Received: (qmail 23889 invoked by uid 500); 12 Jul 2007 22:53:28 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 23841 invoked by uid 500); 12 Jul 2007 22:53:27 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 23830 invoked by uid 99); 12 Jul 2007 22:53:27 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2007 15:53:27 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2007 15:53:24 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 70F597141F6 for ; Thu, 12 Jul 2007 15:53:04 -0700 (PDT) Message-ID: <1791576.1184280784443.JavaMail.jira@brutus> Date: Thu, 12 Jul 2007 15:53:04 -0700 (PDT) From: "Doron Cohen (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Created: (LUCENE-957) Lucene RAM Directory doesn't work for Index Size > 8 GB MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Lucene RAM Directory doesn't work for Index Size > 8 GB ------------------------------------------------------- Key: LUCENE-957 URL: https://issues.apache.org/jira/browse/LUCENE-957 Project: Lucene - Java Issue Type: Bug Components: Store Reporter: Doron Cohen Assignee: Doron Cohen from user list - http://www.gossamer-threads.com/lists/lucene/java-user/50982 Problem seems to be casting issues in RAMInputStream. Line 90: bufferStart = BUFFER_SIZE * currentBufferIndex; both rhs are ints while lhs is long. so a very large product would first overflow MAX_INT, become negative, and only then (auto) casted to long, but this is too late. Line 91: bufferLength = (int) (length - bufferStart); both rhs are longs while lhs is int. so the (int) cast result may turn negative and the logic that follows would be wrong. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org