[ 
https://issues.apache.org/jira/browse/LUCENE-6409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14491999#comment-14491999
 ] 

ASF subversion and git services commented on LUCENE-6409:
---------------------------------------------------------

Commit 1673123 from [~jpountz] in branch 'dev/trunk'
[ https://svn.apache.org/r1673123 ]

LUCENE-6409: Fixed integer overflow in LongBitSet.ensureCapacity.

>  LongBitSet.ensureCapacity overflows on numBits > Integer.MaxValue 
> -------------------------------------------------------------------
>
>                 Key: LUCENE-6409
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6409
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/other
>            Reporter: Luc Vanlerberghe
>
> LongBitSet.ensureCapacity calculates the number of longs required to store 
> the number of bits correctly and allocates a long[] accordingly, but then 
> shifts the array length (which is an int!) left by 6 bits.  The int should be 
> cast to long *before* performing the shift.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to