Your message dated Sun, 13 Nov 2011 15:06:18 +0000
with message-id <[email protected]>
and subject line Bug#648542: fixed in libdigest-crc-perl 0.18-1
has caused the Debian Bug report #648542,
regarding Digest::CRC::b64digest broken/wrong
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.)
--
648542: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648542
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libdigest-crc-perl
Version: 0.17-1
It appears that Digest::CRC::b64digest produces broken/wrong output as
of 0.17.
I think it's encoding the base 10 representation in ASCII of the digest,
rather than encoding the binary value.
The attached perl script demonstrates the problem. Here's an example of
an invocation, and a demonstration of what i think it's doing:
dkg@pip:~/tmp$ ./b64broken
dec: 293510564
phex: 117e9da4
inhex: 117e9da4
pb64: EX6dpA==
inb64: MjkzNTEwNT
0 dkg@pip:~/tmp$ printf MjkzNTEwNT | base64 -d
2935105base64: invalid input
1 dkg@pip:~/tmp$ printf EX6dpA== | base64 -d | hd
00000000 11 7e 9d a4 |.~..|
00000004
0 dkg@pip:~/tmp$
i can't make heads or tails of the internal _encode_base64 function,
unfortunately, so i'm not sure what to propose as a fix.
hth,
--dkg
#!/usr/bin/perl -wT
use strict;
use warnings;
use Digest::CRC;
use MIME::Base64;
my $ctx = Digest::CRC->new(type=>'crc32');
my $data = 'abc1234' x 17;
$ctx->add($data);
printf(" dec: %d\n", $ctx->digest);
$ctx->add($data);
printf(" phex: %06x\n", $ctx->digest);
$ctx->add($data);
printf("inhex: %s\n", $ctx->hexdigest);
$ctx->add($data);
printf(" pb64: %s", encode_base64(pack("H*", sprintf("%08x", $ctx->digest))));
$ctx->add($data);
printf("inb64: %s\n", $ctx->b64digest);
pgpHpDaa0BqtM.pgp
Description: PGP signature
--- End Message ---
--- Begin Message ---
Source: libdigest-crc-perl
Source-Version: 0.18-1
We believe that the bug you reported is fixed in the latest version of
libdigest-crc-perl, which is due to be installed in the Debian FTP archive:
libdigest-crc-perl_0.18-1.debian.tar.gz
to main/libd/libdigest-crc-perl/libdigest-crc-perl_0.18-1.debian.tar.gz
libdigest-crc-perl_0.18-1.dsc
to main/libd/libdigest-crc-perl/libdigest-crc-perl_0.18-1.dsc
libdigest-crc-perl_0.18-1_i386.deb
to main/libd/libdigest-crc-perl/libdigest-crc-perl_0.18-1_i386.deb
libdigest-crc-perl_0.18.orig.tar.gz
to main/libd/libdigest-crc-perl/libdigest-crc-perl_0.18.orig.tar.gz
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.
Alessandro Ghedini <[email protected]> (supplier of updated libdigest-crc-perl
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: SHA256
Format: 1.8
Date: Sun, 13 Nov 2011 14:31:31 +0100
Source: libdigest-crc-perl
Binary: libdigest-crc-perl
Architecture: source i386
Version: 0.18-1
Distribution: unstable
Urgency: low
Maintainer: Debian Perl Group <[email protected]>
Changed-By: Alessandro Ghedini <[email protected]>
Description:
libdigest-crc-perl - Perl module providing generic CRC functions
Closes: 648542 648546
Changes:
libdigest-crc-perl (0.18-1) unstable; urgency=low
.
* Team upload
* New upstream release
- Added openpgparmor support (Closes: #648546)
- Fixed few issues in xs code (Closes: #648542)
Checksums-Sha1:
a471384e9359836ea70499354ba35d07300c7d14 2154 libdigest-crc-perl_0.18-1.dsc
8289a1ebaa0e2e022635e83bb37dc7c2b32c9dd5 7721
libdigest-crc-perl_0.18.orig.tar.gz
76d4586e71b9153c9f4330e5d927fce462558b6c 3005
libdigest-crc-perl_0.18-1.debian.tar.gz
3a6ac31ff15560557d29b1e068356fbdeece7055 16486
libdigest-crc-perl_0.18-1_i386.deb
Checksums-Sha256:
cc2493162f45c525633a024a765f9848828606e6ee4fbbe3b895522fdaa53805 2154
libdigest-crc-perl_0.18-1.dsc
5c5329f37c46eb79835169508583da8767d9839350b69bb2b48ac6f594f70374 7721
libdigest-crc-perl_0.18.orig.tar.gz
3d2117617e03a3dfb88655384b25eafe0713e582207285ce5faad1c670a471c6 3005
libdigest-crc-perl_0.18-1.debian.tar.gz
1117768c4277d35cd171009f12bf7842627fc2962cfa99fe036453edac03601f 16486
libdigest-crc-perl_0.18-1_i386.deb
Files:
90a19b29979f1b7d89f897df0c2d931f 2154 perl optional
libdigest-crc-perl_0.18-1.dsc
baf8cb6c50782416b10f470b2e29bf7a 7721 perl optional
libdigest-crc-perl_0.18.orig.tar.gz
95076cca3764eacfbe520976bd2354e0 3005 perl optional
libdigest-crc-perl_0.18-1.debian.tar.gz
297bdefa0a104e328033cf0fc0f709ff 16486 perl optional
libdigest-crc-perl_0.18-1_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iQIcBAEBCAAGBQJOv9sYAAoJELs6aAGGSaoGjqwP/iYkhxWM/uE7l3LtIhCiBcqw
9nYp+NDeitVFLM19krccmrC1jUcoBxhi1cB+lBxcfjLaY+7agJVpm7yZIUXT2kru
mwY2oBQ4FRYPlQRBGw4YSHm4Dox2wa+tAXraaDTh4Vn0P8rIJE3xkjKOmLJNqHq5
1f0IkcMwKyftbySIpe2DjwMFKG06r71JBjWUytE80c0apFtan9+BRQqZzM4M985v
9xIqQ3MBYpAE8l9C52vYjb6n61VAQTlDbfwSEEEQTREF5+y9g6HKQE3rpX02oC4Z
2SsRLJJ9ulbbTZKGy1EcGPte7NI1nl47kAx8OkSTNfjlI3DMvXC9n4qUN041IYBZ
NbIh6KlKNduxZHeGSH6xDQhlRxRtBe5VbkNNnQ/L61HUI2ec8G4gBlnFEIyLD8pL
CRHv6833NmMLDQwWsreMRnKldr8HKd44ZfTz2RKAFHFrM18Yaw1UNaSd0Lo9wvRn
ICqllG313hyaPA1A9wMF8Bk6R6QfACCQNdremYTDRE5O4qwvlVKYJnmI/GumDPZF
Vgc1ROYNEaMtfSXMplm+noyhH+WBg/l558vqYTBQLAQqCzezQkQ6O60IRrTY+0KT
p9irJIgtNpttWz1B5bT+ly8mENxuO6yl8KKQC9qOu85vjqgI97TdSVRLm3JZAshr
VAdQ+bscIUY4YTElHQr7
=8ugs
-----END PGP SIGNATURE-----
--- End Message ---