Marcono1234 commented on code in PR #15570:
URL: https://github.com/apache/lucene/pull/15570#discussion_r2692129038
##########
lucene/core/src/java/org/apache/lucene/util/compress/LZ4.java:
##########
@@ -111,7 +111,9 @@ public static int decompress(DataInput compressed, int
decompressedLen, byte[] d
// matchs
final int matchDec = compressed.readShort() & 0xFFFF;
- assert matchDec > 0;
+ if (matchDec == 0) {
Review Comment:
Yes sure; the `& 0xFFFF` above should guarantee that the value is always `>=
0` but I guess it does not hurt to check it here as well.
--
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]