mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Fix #3705
This commit is contained in:
parent
ad687e5f58
commit
fd743d1bf3
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue