issue with smime and mutt 1.5.5.1
I was just playing with mutt 1.5.5.1 with smime enabled and I'm getting
a core dump on a smime message. Here's the stack:
program terminated by signal SEGV (no mapping at the fault address)
0xff0b76b4: strlen+0x0080: ld [%o1], %o2
Current function is _smime_getkeys
695 NONULL (SmimeKeys), SmimeDefaultKey);
(dbx) where
[1] strlen(0x0, 0x0, 0x53, 0x7efefeff, 0x81010100, 0xff10828c), at 0xff0b76b4
[2] _doprnt(0x1, 0xffbfe580, 0x1b84f8, 0x0, 0x1790, 0x190e48), at 0xff109b04
[3] snprintf(0x1ac8a4, 0xff, 0x190e44, 0x1b84f8, 0x0, 0x29), at 0xff10b988
=>[4] _smime_getkeys(mailbox = 0x378d98 "William.Fiveash@xxxxxxx"), line 695 in
"smime.c"
[5] smime_getkeys(env = 0x3770a0), line 721 in "smime.c"
[6] crypt_smime_getkeys(env = 0x3770a0), line 344 in "cryptglue.c"
[7] mutt_view_attachments(hdr = 0x380908), line 919 in "recvattach.c"
[8] mutt_index_menu(), line 2061 in "curs_main.c"
[9] main(argc = 3, argv = 0xffbff5fc), line 907 in "main.c"
Since I don't have any smime* parameters set in my .muttrc I think the
following code in _smime_getkeys(), line 694 in smime.c, looks like a
problem to me:
snprintf (SmimeKeyToUse, sizeof (SmimeKeyToUse), "%s/%s",
NONULL (SmimeKeys), SmimeDefaultKey);
snprintf (SmimeCertToUse, sizeof (SmimeCertToUse), "%s/%s",
NONULL (SmimeCertificates), SmimeDefaultKey);
I don't have smime_default_key set in .muttrc thus SmimeDefaultKey is
NULL. Should I open a bug?
--
Will Fiveash