[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: Patch: Short read problem in unzip and gunzip
From: "JoSH Lehan" <krellan () gmail ! com>
Date: 2008-01-28 4:17:44
Message-ID: 242876bc0801272017s61e80a8fx1229498a4d343964 () mail ! gmail ! com
[Download RAW message or body]
Thanks for responding.
> Failing that, at least give a reproducible testcase -
> how do you force short reads?
> (no promices that I can work on it soon, though... sorry).
To give unzip a short read, have it decompress data that comes in
through a pipe.
cat myfile.zip | unzip -
This should quickly reproduce the problem. As a worst case scenario,
let unzip only have one byte at a time.
cat myfile.zip | dd bs=1 | unzip -
The zipfile you're decompressing should have multiple files in it.
Only the first file will work. The remaining files should fail with
an error.
Josh
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic