This looks like a bug which has already been discussed in the mailing list, and fixed.
The diff is here: http://cvs.openssl.org/filediff?f=openssl/crypto/pkcs7/pk7_doit.c&v1=1.50.2.8&v2=1.50.2.9 Further discussion is here: http://www.mail-archive.com/[EMAIL PROTECTED]/msg17162.html Cheers Matt On Tue, 11 May 2004 17:58:10 +0200 (METDST) " via RT" <[EMAIL PROTECTED]> wrote: > > ~:10:49:47: openssl version > OpenSSL 0.9.7d 17 Mar 2004 > ~:10:50:17: openssl smime -encrypt -des3 -in ~/.globus/usercert.pem > -out ereq /etc/grid-security/certificates/1c3f2ca8.0 > Segmentation fault > > ========================= > > GDB trace from above core dump: > > Program received signal SIGSEGV, Segmentation fault. > 0x4011e613 in PKCS7_get_octet_string (p7=0x3d4f2f53) at pk7_doit.c:96 > 96 if ( PKCS7_type_is_data(p7)) > (gdb) print *p7 > Cannot access memory at address 0x3d4f2f53 > (gdb) where > #0 0x4011e613 in PKCS7_get_octet_string (p7=0x3d4f2f53) at > #pk7_doit.c:96 1 0x4011ed25 in PKCS7_dataInit (p7=0x80abab0, bio=0x0) > #at pk7_doit.c:261 2 0x40121409 in PKCS7_encrypt (certs=0x80aafc0, > #in=0x80ab708, > cipher=0x4016f0a0, flags=0) at pk7_smime.c:366 > #3 0x08084872 in smime_main (argc=8, argv=0xbffffa18) at smime.c:483 > #4 0x08054c67 in do_cmd (prog=0x80aaf58, argc=8, argv=0xbffffa18) > at openssl.c:381 > #5 0x08054933 in main (Argc=8, Argv=0xbffffa18) at openssl.c:300 > (gdb) > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > Development Mailing List [EMAIL PROTECTED] > Automated List Manager [EMAIL PROTECTED] > ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
