We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 626b4dd commit 7c8a571Copy full SHA for 7c8a571
src/main/java/org/xerial/snappy/SnappyInputStream.java
@@ -448,12 +448,7 @@ protected boolean hasNextChunk()
448
// extend the compressed data buffer size
449
if (compressed == null || chunkSize > compressed.length) {
450
// chunkSize exceeds limit
451
- try {
452
- compressed = new byte[chunkSize];
453
- }
454
- catch (java.lang.OutOfMemoryError e) {
455
- throw new SnappyError(SnappyErrorCode.INVALID_CHUNK_SIZE, e.getMessage());
456
+ compressed = new byte[chunkSize];
457
}
458
readBytes = 0;
459
while (readBytes < chunkSize) {
0 commit comments