[Zlib-devel] Inflate detection of random data

Mark Adler madler at alumni.caltech.edu
Sun Dec 1 21:46:00 EST 2002


On Thursday, November 28, 2002, at 01:25  AM, Paul Marquess wrote:
> I assume that after the attempted inflation, total_in tells you how 
> far this got before.

It should be close.

> total_in count
> ---------------
> 0       492
> 2       999023

That looks like normal inflate finding an error in the two-byte magic 
header, nearly all the time.  I think what you really want to try is 
feeding random data to raw inflate instead.

mark





More information about the Zlib-devel mailing list