[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#402482: busybox gunzip / zcat fail to decompress validly gzipped files



Package: busybox-udeb
Version: 1:1.1.3-3
Severity: serious

Busybox's gunzip/zcat code does not correctly compress a validly
compressed file (in this case amd64.gz):

# gzip -t (test) says it's ok:
tack:~$ gzip -t -v amd64.gz 
amd64.gz:        OK

# and the normal system versions of gunzip and zcat cope:
tack:~$ gunzip -cd < amd64.gz | wc -l
5151
tack:~$ zcat amd64.gz | wc -l
5151

# But the busybox versions don't:
tack:~$ ./debian/d-i/busybox/bin/gunzip -cd < amd64.gz | wc -l
29
tack:~$ ./debian/d-i/busybox/bin/zcat amd64.gz | wc -l
29

The file is created by concatenating several gzipped chunks of data
together, which documentation says is a valid thing to do. The busybox
tools are being confused by this, and only decompressing the first
such block in the file. This just caused a set of daily builds of d-i
CDs to break, hence I'm marking this serious.

-- 
Steve McIntyre, Cambridge, UK.                                steve@einval.com
"C++ ate my sanity" -- Jon Rabone

Attachment: signature.asc
Description: Digital signature


Reply to: