Your message dated Mon, 20 Aug 2012 10:17:37 +0000
with message-id <[email protected]>
and subject line Bug#582476: fixed in lbzip2 2.2-1
has caused the Debian Bug report #582476,
regarding lbzip2: fails to decompress some valid bzip2 files
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
582476: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=582476
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: lbzip2
Version: 0.23-1
Severity: normal

lbunzip2 makes a bad assumption about maximal bzip2 block size
and as a result it fails to decompress some valid bzip2
files (which are properly handled by bzip2 program).

Attached C program produces (writes to stdout) valid bz2 files
that can't be decompressed using lbzip2.


/*** p1.c ****************************************************************/

#if FILE_SIZE < 171
#undef FILE_SIZE
#define FILE_SIZE 171
#endif

p(x,n) {
  static long b,k;
  b = (b << n) + x, k += n;
  while (k >= 8)
    putchar((b >> (k -= 8)) & 0xff);
}
pb(b) { p(b,8); }

main() {
  long i,j;
  long crc=0x81b02d8b;
  pb('B'); pb('Z'); pb('h'); pb('9');     /* magic */
  p(0x314159,24); p(0x265359, 24);        /* block header */
  p((crc>>16)&0xffff,16); p(crc&0xffff,16);
  p(0,1);   /* block randomised? */
  p(0,24);  /* bwt index */
  for (i=16+256-2; i--;) p(1,1);  /* bitmap */
  p(0,2);
  p(2,3); p(3,15); p(0,3);
  for (j=2; j--;) {               /* code lens for both groups */
    p(8,5);                       /* all codes are 8-bit */
    for (i=255+j; i--;) p(0,1);   /* delta */
    if(!j) { for (i=FILE_SIZE-171;i--;) p(0xEB,8); p(0,1); }
  }

  pb('A'+1);
  pb(0xff);
  p(0x177245,24); p(0x385090,24);
  p((crc>>16)&0xffff,16); p(crc&0xffff,16);

  pb(0x42); pb(0x5A); pb(0x68); pb(0x39); pb(0x31); pb(0x41); pb(0x59);
  pb(0x26); pb(0x53); pb(0x59); pb(0x21); pb(0x26); pb(0x1F); pb(0x78);
  pb(0x00); pb(0x00); pb(0x00); pb(0xC4); pb(0x00); pb(0x00); pb(0x10);
  pb(0x18); pb(0x00); pb(0x20); pb(0x00); pb(0x21); pb(0x98); pb(0x19);
  pb(0x84); pb(0x61); pb(0x77); pb(0x24); pb(0x53); pb(0x85); pb(0x09);
  pb(0x02); pb(0x12); pb(0x61); pb(0xF7); pb(0x80);
}

/*************************************************************************/


$ cc -DFILE_SIZE=1000000 -ot1 p1.c
$ ./t1 >t1a.bz2
$ bzcat t1a.bz2
ABC
$ lbzip2 -d -n 2 t1a.bz2
lbzip2: "t1a.bz2": compressed block too long
$ cc -DFILE_SIZE=2000000 -ot2 p1.c
$ ./t2 >t2a.bz2
$ bzcat t2a.bz2
ABC
$ lbzip2 -d -n 2 t2a.bz2
lbzip2: "t2a.bz2": missing bzip2 block header in full first input block
$



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages lbzip2 depends on:
ii  libbz2-1.0                    1.0.5-4    high-quality block-sorting file co
ii  libc6                         2.10.2-8   Embedded GNU C Library: Shared lib

lbzip2 recommends no packages.

lbzip2 suggests no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Source: lbzip2
Source-Version: 2.2-1

We believe that the bug you reported is fixed in the latest version of
lbzip2, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mikolaj Izdebski <[email protected]> (supplier of updated lbzip2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Mon, 20 Aug 2012 07:29:04 +0200
Source: lbzip2
Binary: lbzip2
Architecture: source amd64
Version: 2.2-1
Distribution: unstable
Urgency: low
Maintainer: Mikolaj Izdebski <[email protected]>
Changed-By: Mikolaj Izdebski <[email protected]>
Description: 
 lbzip2     - fast, multi-threaded bzip2 utility
Closes: 582476 645999 673378
Changes: 
 lbzip2 (2.2-1) unstable; urgency=low
 .
   * New upstream release:
     - limited memory allocation, closes: #645999,
     - improved bzip2 compatibility, closes: #582476,
     - fixed several other minor bugs, closes: #673378.
   * debian/control:
     - drop version requirements on autotools,
     - bump Standards-Version to 3.9.3.
   * debian/copyright:
     - remove comment about maintainers involved in creation of the package,
     - update to reflect new upstream version.
   * debian/rules: execute Bourne shell scripts with sh instead of perl.
   * debian/compat: Bump to 9.
   * debian/watch: Use github.com directly instead of githubredir.
Checksums-Sha1: 
 b72d0a1cdb85a3a080a637459a44577b13f25a92 1169 lbzip2_2.2-1.dsc
 6493d360c52d695d4749d836b1e5ec98f43dfade 134040 lbzip2_2.2.orig.tar.gz
 25ea3b2f1cd628e953140890bad6de3288d3f1f2 5352 lbzip2_2.2-1.debian.tar.bz2
 6d5cc52d4207063b64da751324929c4e9127f254 79960 lbzip2_2.2-1_amd64.deb
Checksums-Sha256: 
 5f608fc31e0ced441fde050cce46a692091a7502ed24abef98f07fa3091b13de 1169 
lbzip2_2.2-1.dsc
 4cb0e50f2fac1dfe12ab3bdc759abdc0227f9dacdd1bba507b37eecbe8666c8a 134040 
lbzip2_2.2.orig.tar.gz
 c4238ae4f9fd65dae16827b441fc2d7e8a251f3d1d39ba6360602a5a3dea070e 5352 
lbzip2_2.2-1.debian.tar.bz2
 7fcc9b05249b56b0a444e8c26812df86f7920c561a1ad065b223e432977acf7a 79960 
lbzip2_2.2-1_amd64.deb
Files: 
 b324105c2f18959ff83454e3d258afe3 1169 utils extra lbzip2_2.2-1.dsc
 8fe777a8405027ac33bf43095504d796 134040 utils extra lbzip2_2.2.orig.tar.gz
 3e78576e933cf8cde911039ce7cef2a5 5352 utils extra lbzip2_2.2-1.debian.tar.bz2
 46c7bd6d1850a82b1f6bf6323d56b7cd 79960 utils extra lbzip2_2.2-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlAyDYcACgkQMDatjqUaT92kZACdFjTW6N5gLNjQQfxF63u/CgFh
AJsAn1mWBvzypoJUrJcLqj3UYVfe2UDx
=/VCd
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to