This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author posita
Recipients lars.gustaebel, posita
Date 2017-03-10.23:00:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1489186848.76.0.378505146332.issue29760@psf.upfronthosting.co.za>
In-reply-to
Content
After some consideration, I think this is probably more correct:

```
--- /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tarfile.py  2016-12-17 12:41:21.000000000 -0800
+++ tarfile.py  2017-03-10 14:57:15.000000000 -0800
@@ -2347,9 +2347,10 @@

         # Advance the file pointer.
         if self.offset != self.fileobj.tell():
-            self.fileobj.seek(self.offset - 1)
+            self.fileobj.seek(max(self.offset - 1, 0))
             if not self.fileobj.read(1):
                 raise ReadError("unexpected end of data")
+            self.fileobj.seek(self.offset)

         # Read the next block.
         tarinfo = None
```

But again, I'm no expert here.
History
Date User Action Args
2017-03-10 23:00:48positasetrecipients: + posita, lars.gustaebel
2017-03-10 23:00:48positasetmessageid: <1489186848.76.0.378505146332.issue29760@psf.upfronthosting.co.za>
2017-03-10 23:00:48positalinkissue29760 messages
2017-03-10 23:00:48positacreate