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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=10a444965dd537f4fc0483e960941cfdac8b2e11;p=thirdparty%2FPython%2Fcpython.git [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 9dd8601cb63e..26f9c7f6acff 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("