New submission from Марк Коренберг: 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. ---------- messages: 179006 nosy: mmarkk priority: normal severity: normal status: open title: tarfile.TarInfo.fromtarfile does not check read() return value _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16859> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com