busybox gzip: Memory Fault

David Douthitt ssrat at mailbag.com
Tue Nov 7 15:13:18 UTC 2000


Package: busybox
Version: 0.48pre

Compiled: 2000.11.07-14:34+0000

gzip fails after reading so many bytes.  I did:

strace gzip foo.tar

and it said...

read(3, "................" ..., 65536) = 65536
read(3, "................" ..., 32768) = 32768
read(3, "................" ..., 32768) = 32768
--- SIGSEGV (Segmentation Fault) ---
+++ killed by SIGSEGV +++

I did:

ctar /usr/bin/* | strace gzip -c - > foo.tar.gz

and it did:

read(0, "....................." ..., 28672) = 4096
read(0, "....................." ..., 24576) = 4096
read(0, "....................." ..., 20480) = 4096
--- SIGSEGV (Segmentation Fault) ---
+++ killed by SIGSEGV +++

...the "....." contained arbitrary data from the data stream 
apparently.


-- 
David Douthitt
UNIX Systems Administrator
HP-UX, Linux, Unixware
ddouthitt at mennonite.minister.net

---------------------------------------
Received: (at 1073-close) by bugs.lineo.com; 8 Nov 2000 06:54:10 +0000


More information about the busybox mailing list