pbzip2 1.1.5 fails to decompress files with trailing garbage
Bug #886625 reported by
Jeff Gilchrist
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pbzip2 |
Fix Committed
|
Medium
|
Yavor Nikolov |
Bug Description
Reported in Debian bug system: http://
Some files with trailing garbage aren't decompressed correctly (but some are). See original bug link above which includes sample files and steps to reproduce problem.
Changed in pbzip2: | |
milestone: | none → 1.1.7 |
Changed in pbzip2: | |
assignee: | nobody → Yavor Nikolov (yavor-nikolov) |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in pbzip2: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
With the fix applied (revision 31) pbzip2 still fails to decompress some files with trailing garbage, for example:
$ ./pbzip2 -dc <0096509d7693ab 0ee2ac54baa1d32 fe9.bz2 >/dev/null
pbzip2: *ERROR during BZ2_bzDecompress - trailing garbage: ret=4; block=0; seq=0; isLastInSeq=1; avail_in=252
Terminator thread: premature exit requested - quitting...
$ echo $?
1
The same file is correctly decompressed by bzip2 1.0.5:
$ bzip2 -dcq <0096509d7693ab 0ee2ac54baa1d32 fe9.bz2 >/dev/null
$ echo $?
0
The file 0096509d7693ab0 ee2ac54baa1d32f e9.bz2 is a part of "PROTOS Genome Test Suite c10-archive", which is a test suite for bzip2 (and other archivers). It's available at: http:// www.ee. oulu.fi/ research/ ouspg/protos/ testing/ c10/archive
(This may be a similar, but different bug though. I didn't analyze the fix from commit 31.)