From: Andrew M. Kuchling Date: Fri, 24 Oct 2003 17:38:34 +0000 (+0000) Subject: [Bug #822668] tarfile raises an exception if the tarfile is gzipped and is too large... X-Git-Tag: v2.4a1~1379 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10a444965dd537f4fc0483e960941cfdac8b2e11;p=python [Bug #822668] tarfile raises an exception if the tarfile is gzipped and is too large; the gzip filesize should be written out mod 2**32. (Reported by Johan Fredrik Ohman) --- diff --git a/Lib/tarfile.py b/Lib/tarfile.py index 9dd8601cb6..26f9c7f6ac 100644 --- a/Lib/tarfile.py +++ b/Lib/tarfile.py @@ -357,7 +357,7 @@ class _Stream: self.buf = "" if self.type == "gz": self.fileobj.write(struct.pack("