[PATCH] add a new unlzma applet

Aurelien Jacobs aurel at gnuage.org
Sat Jan 21 00:26:19 UTC 2006


On Fri, 20 Jan 2006 12:39:53 -0600
Rob Landley <rob at landley.net> wrote:

> On Friday 20 January 2006 06:25, Aurelien Jacobs wrote:
> > On Wed, 18 Jan 2006 00:46:18 -0600
> >
> > Rob Landley <rob at landley.net> wrote:
> > > It's late enough I'm about to collapse but if I haven't applied your
> > > patch by thursday remind me, ok?
> >
> > Beep.
> > Reminder: patch still not applied :-)
> 
> Continuing to test after checking in:
> ./busybox tar tavf woot.sh
> Segmentation fault

I can't reproduce the segfault. Could you provide your woot.sh file ?
When I try this on random files, I generally get:
tar: memory exhausted

The problem is that the lzma format contains nothing allowing to check
if this is really an lzma file. Moreover, it don't contain any kind of
CRC, so you can't verify that the decompression goes well and that there
was no corruption.

Still, here is a patch which will allow to detect all those "memory exhausted"
cases, and thus detect most of the non lzma files.

> Wanna take a look at that?  (In the absence of compression support, I don't 
> have any valid lzma archives to feed it...)

If you want to try lzma compression, download the lzma SDK, unpack, and
cd C/7zip/Compress/LZMA_Alone/; make -f makefile.gcc

Aurel
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: unlzma-check-dict-size.diff
Url: http://lists.busybox.net/pipermail/busybox/attachments/20060121/b877434e/attachment.diff 


More information about the busybox mailing list