easyice commented on code in PR #12996:
URL: https://github.com/apache/lucene/pull/12996#discussion_r1443993181
##########
lucene/core/src/java/org/apache/lucene/codecs/lucene90/LZ4WithPresetDictCompressionMode.java:
##########
@@ -128,10 +128,12 @@ public void decompress(DataInput in, int originalLength,
int offset, int length,
}
// Read blocks that intersect with the interval we need
+ if (offsetInBlock < offset + length) {
Review Comment:
I kept the logic that if the new length is less than the current array then
we don't do anything. it appears in some cases.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]