Package: libcompress-bzip2-perl
Version: 2.09-1
Severity: serious

When using the Compress::Bzip2 Perl module to compress an empty file, the 
resulting compressed file becomes corrupted. The bzip2 program however 
compresses them just fine.

Although I know compressing an empty file won't save much space, there is a 
program I'm working on called debpool which sometimes would need to compress 
empty files anyway (like the Packages/Sources files for distributions that 
have no packages uploaded yet). 

I've attached a simple script that could be used to replicate the problem. 
I've also attached a script that compresses a file into gzip format using the 
Compress::Zlib module, just as a comparison, and to show it works with 
Compress::Zlib.

-- 
Regards,
Andres

Attachment: bzip2test
Description: Perl program

Attachment: gziptest
Description: Perl program

Reply via email to