Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 60117
Status: resolved
Priority: 0/
Queue: Crypt-OpenSSL-X509

People
Owner: Nobody in particular
Requestors: stuart [...] morungos.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.2
Fixed in: (no value)



Subject: Segfaulting from the fingerprint_sha1
Segfaulting from the fingerprint_sha1 method. Easy to reproduce from the command line as follows: stuart-watts-mac-mini:ARM stuart$ perl -de1 Loading DB routines from perl5db.pl version 1.33 Editor support available. Enter h or `h h' for help, or `man perldebug' for more help. main::(-e:1): 1 DB<1> use Crypt::OpenSSL::X509 DB<2> $x509 = Crypt::OpenSSL::X509->new_from_file('license/arm.pem') DB<3> x $x509->subject() 0 'C=CA, ST=Ontario, L=Toronto, O=Information Balance, OU=ARM Development, CN=ARM Root Certificate, emailAddress=swatt@infobal.com' DB<4> x $x509->fingerprint_md5() 0 '6F:65:2F:D2:0B:F3:9A:A0:76:E1:DB:74:9C:73:73:D8' DB<5> x $x509->exponent() 0 10001 DB<6> x $x509->fingerprint_sha1() Signal BUS at /Users/stuart/perl/lib/5.12.1/perl5db.pl line 638 DB::eval called at /Users/stuart/perl/lib/5.12.1/perl5db.pl line 3448 DB::DB called at -e line 1 Abort trap 64-bit Perl under OSX Snow Leopard: config details attached. I'll have a quick look at the source in a moment and see if I can find the problem.
Subject: perl.config
Download perl.config
application/octet-stream 2.2k

Message body not shown because it is not plain text.

Yep, just an off by one from the updates in the previous release. The patch is really this simple: --- X509.xs 2010-08-05 16:51:42.000000000 -0400 +++ ../Crypt-OpenSSL-X509-1.2/X509.xs 2010-05-31 08:58:11.000000000 -0400 @@ -583,7 +583,7 @@ Crypt::OpenSSL::X509 x509; ALIAS: - fingerprint_sha1 = 1 + fingerprint_sha1 = 2 PREINIT:
Thanks - this has already been fixed on github: http://github.com/dsully/perl-crypt-openssl-x509/commits/master/ I'll push out a new version to CPAN.