Subject: | Compressing an empty file yields an empty (i.e. invalid) file |
Hi,
I'm filing this bug as a followup to the corresponding bug report in Debian:
http://bugs.debian.org/cgi-bin/bugreport.cgi?archive=no&bug=464205
Andres Mejia, the bug submitter, found out that trying to compress a
zero-byte file results in creating a zero-byte .bz2 file - which is
clearly invalid. I am attaching here the bzip2test test case he sent to
illustrate the point (patched with Jeffrey Ratcliffe's further comment -
see bug report).
I'll also attach the file that fixes this problem. I am uploading a
patched release to Debian, but I'd be most grateful if you include this
fix (or any fix, of course ;-) ) to your code.
Subject: | bzip2test |
Message body not shown because it is not plain text.