[PATCH 1/2] inflate_codes(): Add fix from upstream gzip to prevent false CRC error

Denys Vlasenko vda.linux at googlemail.com
Thu Feb 18 00:54:29 UTC 2010


On Tuesday 16 February 2010 20:08, Rob Landley wrote:
> > > There's a reason the Linux kernel uses the zlib deflate implementatin,
> > > which is bsd licensed.
> >
> > That and it is better structured.
> 
> Back in 1996 I wrote my own deflate implementation in Java under OS/2, vaguely 
> based on the info-zip source code and the old dos ZIP deflate description file.  
> (Then the 1.1 JTK came out with inflate/deflate as part of the standard library, 
> and I never got around to the decompression side...)  It's been quite a while, 
> but I have some vague residual understanding of the protocol. :)
> 
> However, the linux kernel has lib/zlib_deflate and lib/zlib_inflate and they 
> look fairly straightforward.  They're already maintained and optimized by the 
> single largest open source development community on the planet (the linux-
> kernel guys), under a license that's guaranteed to remain compatible with 
> BusyBox.
> 
> I'd say the kernel's version is probably the best one for us to use.  I can 
> take a stab at porting it over if Denys is interested...

Yes, by all means! :)
-- 
vda


More information about the busybox mailing list