Hi,

Thank you for making this clear to me. My guess was that 466 value for max_compression_ratio is somehow out of range. Also, Daniel thanks for the logic bomb tutorial ;)

Regards,
Ovidiu

Daniel Lord wrote:
Hi Ovidiu,

On Fri, Aug 27, 2004 at 11:50:16AM +0200, Tomasz Papszun wrote:

On Thu, 26 Aug 2004 at 20:22:34 +0300, Ovidiu Bivolaru wrote:

I'm using ClamAV 0.75.1 and I encounter one of the Oversized.zip issues. I've read a few threads about this issue and I've learned that maxcompressionratio could be 200 ~ 99.5% compression.
I have a zip file which reports a compression ratio of 466. Is this possible ?
[...]

Of course. It depends just on the kind of compressed data.


just try: (need: dd, zip, zipinfo, bc, ls, /dev/zero :)

dd if=/dev/zero of=data bs=1k count=200
zip data.zip data

zipinfo data.zip
Archive:  data.zip   355 bytes   1 file
-rw-r--r--  2.3 unx   204800 bx defN 27-Aug-04 13:25 data
1 file, 204800 bytes uncompressed, 215 bytes compressed:  99.9%

ls -l data*
... 204800 27. Aug 13:25 data
...... 355 27. Aug 13:25 data.zip

echo "204800/215; 204800/355" | bc

So such archives are possible. _BUT_ I wouldn't try to feed my
virus scanner with something like that :)

Greetings Daniel


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to