[BusyBox 0000347]: tar: Decompression failed returns exit status 0 even error happened
bugs at busybox.net
bugs at busybox.net
Thu Dec 22 12:10:03 UTC 2005
A NOTE has been added to this issue.
======================================================================
http://busybox.net/bugs/view.php?id=347
======================================================================
Reported By: robang74
Assigned To: BusyBox
======================================================================
Project: BusyBox
Issue ID: 347
Category: Standards Compliance
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
======================================================================
Date Submitted: 07-21-2005 14:57 PDT
Last Modified: 12-22-2005 04:10 PST
======================================================================
Summary: tar: Decompression failed returns exit status 0 even
error happened
Description:
BEFORE (original 1.00 on the embbedded device):
root at embeslax:~# cd /tmp
root at embeslax:/tmp# dd if=/dev/zero of=pippo.tar.bz2 bs=1k count=1
1+0 records in
1+0 records out
root at embeslax:/tmp# tar xjf pippo.tar.bz2; echo $?
tar: Decompression failed
0
AFTER (patched on my workstation):
bash-2.05b# dd if=/dev/zero of=pippo.tar.bz2 bs=1k count=1
0+0 records in
0+0 records out
bash-2.05b# _install/bin/tar xjf pippo.tar.bz2; echo $?
tar: Decompression failed
255
======================================================================
----------------------------------------------------------------------
robang74 - 07-21-05 15:00
----------------------------------------------------------------------
This patch affects rpm too.
----------------------------------------------------------------------
robang74 - 12-21-05 12:51
----------------------------------------------------------------------
PLEASE IGNORE PATCH BEFORE busybox-1.01_raf_3.diff
because they don't work propely or don't work at all.
:-(
Create a broken tar.gz (.bz2/.Z show the same)
tar cvzf /tmp/test.tar.gz /bin/bash
dd if=/tmp/test.tar.gz of=/tmp/test.tar.gz0 bs=1k count=10
dd if=/dev/zero >>/tmp/test.tar.gz0 bs=1k count=10
BEFORE patch
./busybox tar tvzf /tmp/test.tar.gz0; echo $?
tar: unexpected end of file
0
AFTER patch
./busybox tar tvzf /tmp/test.tar.gz0; echo $?
tar: unexpected end of file
tar: null size tar archive
1
Supposed to fix a possible memory leak in decompress_unzip.c
which should affect static linked one
----------------------------------------------------------------------
robang74 - 12-22-05 04:10
----------------------------------------------------------------------
PATCH busybox-1.01_raf_4.diff
- do not include changes at Makefile
- open_transformer learn how to manage child's exit status
- supposed that open_transformer is better in preventing zombies
- minor changes
AFTER patch:
./busybox tar tvzf /tmp/test.tar.gz0; echo $?
tar: unexpected end of file
tar: child exit with error code 1
1
Issue History
Date Modified Username Field Change
======================================================================
07-21-05 14:57 robang74 New Issue
07-21-05 14:57 robang74 Status new => assigned
07-21-05 14:57 robang74 Assigned To => BusyBox
07-21-05 14:57 robang74 File Added: busybox-1.00_raf.diff
07-21-05 15:00 robang74 Note Added: 0000337
12-19-05 06:50 robang74 Issue Monitored: robang74
12-19-05 07:14 robang74 Note Added: 0000801
12-19-05 07:15 robang74 File Added: busybox-1.01_raf.diff
12-19-05 07:16 robang74 Note Added: 0000802
12-21-05 12:51 robang74 Note Added: 0000805
12-21-05 12:51 robang74 Note Deleted: 0000802
12-21-05 12:52 robang74 Note Deleted: 0000801
12-21-05 12:52 robang74 File Added: busybox-1.01_raf_3.diff
12-22-05 04:06 robang74 File Added: busybox-1.01_raf_4.diff
12-22-05 04:10 robang74 Note Added: 0000806
======================================================================
More information about the busybox-cvs
mailing list