Hello Robert,
thanks for your patch.
When I test your patched code here, I get:
...
# Testing Net::SSLeay 1.52, Perl 5.016000, /usr/bin/perl
# OpenSSL version: 'OpenSSL 1.0.1e 11 Feb 2013'
# OpenSSL platform: 'platform: linux-elf'
...
t/local/32_x509_get_cert_info.t ........ 1/1247
# Failed test 'serial ASN1_INTEGER_get testcert_cdp.crt.pem'
# at t/local/32_x509_get_cert_info.t line 134.
# got: '-1'
# expected: '-8348367543329812679'
# Failed test 'EVP_PKEY_id'
# at t/local/32_x509_get_cert_info.t line 226.
# got: '6'
# expected: undef
# Looks like you failed 2 tests of 1247.
What platform(s) did you test your patch on?
Cheers.
On Wednesday, March 06, 2013 03:45:35 PM you wrote:
Show quoted text> Wed Mar 06 15:45:34 2013: Request 83795 was acted upon.
> Transaction: Ticket created by rad@netcraft.com
> Queue: Net-SSLeay
> Subject: Segfault in P_X509_get_crl_distribution_points
> Broken in: (no value)
> Severity: (no value)
> Owner: Nobody
> Requestors: rad@netcraft.com
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=83795 >
>
>
> Hi,
>
> I've found a bug when running P_X509_get_crl_distribution_points on an
> X509 certificate with values in the CDP extension which do not have an
> ia5 string will cause a segmentation fault when accessed.
>
> I've included a test case and a proposed patch which resolves the
> problem by only include GEN_URI strings.
>
> Note that in the test case I have provided this returns 2 items (both of
> the URIs and not the DirName) rather than include all 3. I'm not
> necessarily convinced that this is the best option - I am open to a
> different approach.
--
Mike McCauley mikem@open.com.au
Open System Consultants Pty. Ltd
9 Bulbul Place Currumbin Waters QLD 4223 Australia
http://www.open.com.au
Phone +61 7 5598-7474 Fax +61 7 5598-7070
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS,
TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, MOTP, HOTP, TOTP,
DIAMETER etc. Full source on Unix, Windows, MacOSX, Solaris, VMS, NetWare etc.