[BusyBox] busybox gzip problem: crc error
Glenn McGrath
bug1 at optushome.com.au
Wed Nov 28 21:12:02 UTC 2001
On Wed, 28 Nov 2001 11:48:58 +0800
"Chang, Shu-Hao" <shuhao_chang at trend.com.tw> wrote:
> I trace the code in busybox. It seems busybox gzip read
> the crc from wrong position(lost the first byte).
>
Yes i agree with this, it looks like inflate_block() is reading one
extra char somewhere which results in a short read on the crc/length
block, only 7 of 8 bytes are being read, a manual check of the values
starting 1 byte earlier agrees with what busybox reports the crc and
length should be based on data processed.
Strangely, the file still extracts with the correct size and md5sum, i
guess somewhere in the compressed data there is must be some filler to
round the data to a nice size.
Glenn
More information about the busybox
mailing list