Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4C48010360 for ; Wed, 21 Aug 2013 20:56:52 +0000 (UTC) Received: (qmail 94849 invoked by uid 500); 21 Aug 2013 20:56:52 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 94808 invoked by uid 500); 21 Aug 2013 20:56:52 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 94797 invoked by uid 99); 21 Aug 2013 20:56:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Aug 2013 20:56:51 +0000 Date: Wed, 21 Aug 2013 20:56:51 +0000 (UTC) From: "Vijay (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-5903) Integer overflow in OffHeapBitSet when bloomfilter > 2GB MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-5903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vijay updated CASSANDRA-5903: ----------------------------- Attachment: 0001-CASSANDRA-5903-check.patch Not sure if we still need this patch, attaching it just in case :) > Integer overflow in OffHeapBitSet when bloomfilter > 2GB > -------------------------------------------------------- > > Key: CASSANDRA-5903 > URL: https://issues.apache.org/jira/browse/CASSANDRA-5903 > Project: Cassandra > Issue Type: Bug > Components: Core > Reporter: Taylan Develioglu > Assignee: Vijay > Labels: patch > Fix For: 1.2.9 > > Attachments: 0001-CASSANDRA-5903-check.patch, 0001-CASSANDRA-5903.patch, 0002-CASSANDRA-5903.patch > > > In org.apache.cassandra.utils.obs.OffHeapBitSet. > byteCount overflows and causes an IllegalArgument exception in Memory.allocate when bloomfilter is > 2GB. > Suggest changing byteCount to long. > {code:title=OffHeapBitSet.java} > public OffHeapBitSet(long numBits) > { > // OpenBitSet.bits2words calculation is there for backward compatibility. > int byteCount = OpenBitSet.bits2words(numBits) * 8; > bytes = RefCountedMemory.allocate(byteCount); > // flush/clear the existing memory. > clear(); > } > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira