mirror of
https://github.com/xerial/snappy-java.git
synced 2025-07-26 23:44:10 +02:00
Remove the problematic catch of OOM. (#647)
This commit is contained in:
parent
626b4dd765
commit
7c8a57108e
@ -448,12 +448,7 @@ public class SnappyInputStream
|
||||
// extend the compressed data buffer size
|
||||
if (compressed == null || chunkSize > compressed.length) {
|
||||
// chunkSize exceeds limit
|
||||
try {
|
||||
compressed = new byte[chunkSize];
|
||||
}
|
||||
catch (java.lang.OutOfMemoryError e) {
|
||||
throw new SnappyError(SnappyErrorCode.INVALID_CHUNK_SIZE, e.getMessage());
|
||||
}
|
||||
compressed = new byte[chunkSize];
|
||||
}
|
||||
readBytes = 0;
|
||||
while (readBytes < chunkSize) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user