Skip Menu |
 

This queue is for tickets about the Crypt-OpenSSL-Bignum CPAN distribution.

Report information
The Basics
Id: 81537
Status: resolved
Priority: 0/
Queue: Crypt-OpenSSL-Bignum

People
Owner: Nobody in particular
Requestors: Xavier (no email address)
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.04
Fixed in: (no value)



Subject: to_bin method returns garbage when value is zero
Download (untitled) / with headers
text/plain 316b
Hi, A Debian user reports the following problem: perl -MMIME::Base64 -MCrypt::OpenSSL::Bignum -we 'print encode_base64(Crypt::OpenSSL::Bignum->zero->to_bin)' returns different garbage every time it's run. Expected result would be the empty string. Example outputs: 8BPYAQ== 8DPj 8CPJ 8IOn 8KMSAg== cheers,
Download (untitled) / with headers
text/plain 720b
I'm not seeing this on the OpenSuse distro I use, so it will be difficult for me to address this without more information. If the user uses CPAN to build and install from source, do they see the same result? That would help to clarify whether it's an issue with the core module or the Debian packaging of it. - Ian On Thu Nov 29 07:53:41 2012, GUIMARD wrote: Show quoted text
> Hi, > > A Debian user reports the following problem: > > perl -MMIME::Base64 -MCrypt::OpenSSL::Bignum -we 'print > encode_base64(Crypt::OpenSSL::Bignum->zero->to_bin)' > > returns different garbage every time it's run. Expected result would
be Show quoted text
> the empty string. Example outputs: > > 8BPYAQ== > 8DPj > 8CPJ > 8IOn > 8KMSAg== > > cheers,
Download (untitled) / with headers
text/plain 762b
Le Jeu 29 Nov 2012 11:12:10, IROBERTS a écrit : Show quoted text
> I'm not seeing this on the OpenSuse distro I use, so it will be > difficult for me to address this without more information. > > If the user uses CPAN to build and install from source, do they see the > same result? That would help to clarify whether it's an issue with the > core module or the Debian packaging of it. > > - Ian >
Hi, I've the same problem, using your sources : $ perl Makefile.PL && make && make test ... $ perl -I blib/lib/ -MMIME::Base64 -MCrypt::OpenSSL::Bignum -we 'print encode_base64(Crypt::OpenSSL::Bignum->zero->to_bin)' UKHSAQ== $ perl -I blib/lib/ -MMIME::Base64 -MCrypt::OpenSSL::Bignum -we 'print encode_base64(Crypt::OpenSSL::Bignum->zero->to_bin)' ULHt Cheers, Xavier
fixed in 0.05


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.