From: guillaume.pierronnet@... Date: 2003-12-04T00:21:41+09:00 Subject: Re: [PATCH] OpenSSL::X509::Certificate#inspect bug hi, $ ruby -ropenssl -e 'OpenSSL::X509::Certificate.new.inspect' -e:1: [BUG] Segmentation fault ruby 1.8.1 (2003-12-03) [i686-linux] Abandon (core dumped) $ --- ext/openssl/ossl_asn1.c Mon Oct 6 18:55:00 2003 +++ /usr/local/src/ruby_cvs/ext/openssl/ossl_asn1.c Wed Dec 3 15:47:54 2003 @@ -33,6 +33,10 @@ } memset(&tm, 0, sizeof(struct tm)); + if (!time->data) { + return Qnil; + } + switch (time->type) { case V_ASN1_UTCTIME: if (sscanf(time->data, "%2d%2d%2d%2d%2d%2dZ", &tm.tm_year, &tm.tm_mon, moumar -- /************************************************************************/ /* Guillaume Pierronnet */ /************************************************************************/