Apache Solr open-source search software
Fix integer overflow.
Adrien Grandb032fb49f09c
diff --git a/lucene/codecs/src/java/org/apache/lucene/codecs/compressing/CompressingStoredFieldsIndex.java b/lucene/codecs/src/java/org/apache/lucene/codecs/compressing/CompressingStoredFieldsIndex.javaindex 3262293abf2..b7be254afe5 100644--- a/lucene/codecs/src/java/org/apache/lucene/codecs/compressing/CompressingStoredFieldsIndex.java+++ b/lucene/codecs/src/java/org/apache/lucene/codecs/compressing/CompressingStoredFieldsIndex.java@@ -363,7 +363,7 @@ public enum CompressingStoredFieldsIndex {throw new CorruptIndexException("Expected " + numChunks + " chunks, but got " + startPointerDeltas.size());}final PackedInts.Mutable startPointers = PackedInts.getMutable(numChunks, bitsPerStartPointer, PackedInts.COMPACT);- int startPointer = 0;+ long startPointer = 0;for (int i = 0; i < numChunks; ++i) {startPointer += startPointerDeltas.next();startPointers.set(i, startPointer);