| Anonymous | Login | Signup for a new account | 11-10-2008 10:51 PST |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0000496 | [BusyBox] Other | minor | always | 10-21-05 06:05 | 01-09-06 22:20 | ||||
| Reporter | xbc | View Status | public | ||||||
| Assigned To | BusyBox | ||||||||
| Priority | normal | Resolution | fixed | ||||||
| Status | closed | Product Version | 1.00 | ||||||
| Summary | 0000496: Gunzip do not report correclty when uncompressing a corrupted gz file | ||||||||
| Description |
We voluntary corrupted a gz file ( changing one byte ) then oncompressed it with bb gunzip. In such a case, bb's gunzip - spot the error correctly - display a message about a CRC error BUT - return the same exit code as when the gz file is ok We patched the thing, see attachment |
||||||||
| Additional Information |
Here is the patch we made on archival/libunarchive/decompress_unzip.c ( well, it's our first one, wishing it's ok ) |
||||||||
| Attached Files |
|
||||||||
|
|
|||||||||
Notes |
|
|
(0000819) robang74 12-27-05 02:57 |
This bug is still in bb version 1.01, but with different behaviure (see below). Anyway this bug and segmentation fault could be fixed using patch for 347 bug. http://busybox.net/bugs/view.php?id=347 [^] HOW TO REPRODUCE BUG: busybox-1.01]$ cat busybox | gzip -9 > test.gz busybox-1.01]$ cat test.gz | tr -d \ >test.gz0 busybox-1.01]$ ls -al test.gz* -rw-r--r-- 1 roberto users 136149 dic 27 11:51 test.gz -rw-r--r-- 1 roberto users 135682 dic 27 11:51 test.gz0 BEFORE PATCH 347: busybox-1.01]$ ./busybox gunzip -t test.gz; echo $? 0 busybox-1.01]$ ./busybox gunzip -t test.gz0; echo $? Segmentation fault 139 AFTER PATCH 347: busybox-1.01_raf7]$ ./busybox gunzip -t test.gz; echo $? 0 busybox-1.01_raf7]$ ./busybox gunzip -t test.gz0; echo $? gunzip: inflate error 2 1 |
|
(0000905) landley 01-09-06 22:20 |
svn 13221 |
| Copyright © 2000 - 2006 Mantis Group |