[issue16859] tarfile.TarInfo.fromtarfile does not check read() return value

2014-07-18 Thread Lars Gustäbel

Lars Gustäbel added the comment:

The size of the buffer returned by TarInfo.fromtarfile() is checked by 
TarInfo.frombuf() which raises either an EmptyHeaderError or 
TruncatedHeaderError respectively.

--
assignee:  - lars.gustaebel
resolution:  - not a bug
stage:  - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16859
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16859] tarfile.TarInfo.fromtarfile does not check read() return value

2014-07-15 Thread Mark Lawrence

Mark Lawrence added the comment:

@Lars can we have a comment on this please.

--
nosy: +BreamoreBoy
type:  - behavior
versions: +Python 2.7, Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16859
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16859] tarfile.TarInfo.fromtarfile does not check read() return value

2013-01-04 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
nosy: +lars.gustaebel

___
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



[issue16859] tarfile.TarInfo.fromtarfile does not check read() return value

2013-01-03 Thread Марк Коренберг

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