mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 10:10:08 +02:00
Fix #3705
This commit is contained in:
@@ -101,8 +101,9 @@ public class Tar {
|
||||
}
|
||||
long size = e.getSize();
|
||||
Preconditions.checkArgument(
|
||||
size > 0 && size < Integer.MAX_VALUE,
|
||||
"file too big: tarTo should have thrown an IOException"
|
||||
size >= 0 && size <= Integer.MAX_VALUE,
|
||||
"file too big (" + size + " B): " +
|
||||
"tarTo should have thrown an IOException"
|
||||
);
|
||||
try (OutputStream out = new FileOutputStream(f)) {
|
||||
/* TarInputStream pretends each
|
||||
|
||||
Reference in New Issue
Block a user