Skip to content

Commit f482a85

Browse files
committed
Fix untar with extracting max size
1 parent 091fead commit f482a85

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

provisionersdk/archive.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ func Untar(directory string, archive []byte) error {
8888
}
8989
// Max file size of 10MB.
9090
_, err = io.CopyN(file, reader, (1<<20)*10)
91+
if xerrors.Is(err, io.EOF) {
92+
err = nil
93+
}
9194
if err != nil {
9295
return err
9396
}

0 commit comments

Comments
 (0)