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 socketpair
Recipients socketpair
Date 2013-01-04.07:55:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1357286122.2.0.304851627332.issue16859@psf.upfronthosting.co.za>
In-reply-to
Content
tarfile.TarInfo.fromtarfile does not check read() return value.
read() may return less than requested size, so,

buf = tarfile.fileobj.read(BLOCKSIZE)
...
obj.offset = tarfile.fileobj.tell() - BLOCKSIZE

may do something nasty.
History
Date User Action Args
2013-01-04 07:55:22socketpairsetrecipients: + socketpair
2013-01-04 07:55:22socketpairsetmessageid: <1357286122.2.0.304851627332.issue16859@psf.upfronthosting.co.za>
2013-01-04 07:55:22socketpairlinkissue16859 messages
2013-01-04 07:55:21socketpaircreate