throw error on partial header reading stream
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Mon, 10 Apr 2017 13:01:56 +0000 (15:01 +0200)
committerPhilipp Gesang <philipp.gesang@intra2net.com>
Mon, 7 Aug 2017 12:02:47 +0000 (14:02 +0200)
commit874b9e82f85e6d22b4256b1963d9dd80c4623222
treec6895cd3e5f60df47ac06489dcd3ea3e9dde091e
parent3615af10b6b8bb2b51a83585ad9a41fc21f18eda
throw error on partial header reading stream

Throw the EOF exception only if the stream ends exactly at an
object boundary. Otherwise, when less then sizeof(hdr) bytes
are returned from read(), throw InvalidHeader to indicate a
malformed file. This keeps EOF a “benign” exception.
deltatar/crypto.py
deltatar/tarfile.py