DecompressedHash should fail on trailing input
authorHelmut Grohne <helmut@subdivi.de>
Wed, 19 Feb 2014 06:54:21 +0000 (07:54 +0100)
committerHelmut Grohne <helmut@subdivi.de>
Wed, 19 Feb 2014 06:54:21 +0000 (07:54 +0100)
commit17597b5e828f9bbc9b0159102b173c284c23a140
tree2d50885299960379bc09a22d6154a39f67748c4d
parentd228c0a4a5827325bca47d63ea287c7cb56537ea
DecompressedHash should fail on trailing input

Otherwise all files smaller than 10 bytes are successfully hashed to the
hash of the empty input when using the GzipDecompressor.

Reported-By: Olly Betts
dedup/hashing.py