[issue24259] tar.extractall() does not recognize unexpected EOF

Martin Panter report at bugs.python.org
Thu May 28 02:57:17 CEST 2015


Martin Panter added the comment:

I might be able to make a patch, but what should the patch do exactly?

* Raise an exception as soon as something wrong is found
* Defer exceptions until close() is called, to allow partial data recovery
* Add some sort of defects API that you can optionally inspect, like the email message library has
* A new tarfile.open(strict=True) mode

----------
components: +Library (Lib)
nosy: +vadmium
type:  -> enhancement

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24259>
_______________________________________


More information about the Python-bugs-list mailing list