#3797: mutt.core Signal 11 Segmentation Fault OpenBSD  5.4 -> Current
-------------------------+----------------------
  Reporter:  shepper     |      Owner:  mutt-dev
      Type:  defect      |     Status:  new
  Priority:  major       |  Milestone:
 Component:  maildir/mh  |    Version:  1.5.24
Resolution:              |   Keywords:
-------------------------+----------------------

Comment (by shepper):

 Sorry, I'm learning and patches without +'s and -'s are new :)
 Running this now - will F/U in a couple of days

 Revised patch:


 {{{
 $OpenBSD$
 --- mh.c.orig   Sun Dec  6 09:10:09 2015
 +++ mh.c        Sun Dec  6 09:12:32 2015
 @@ -2106,7 +2106,11 @@ int mh_check_mailbox (CONTEXT * ctx, int
 *index_hint)
    fnames = hash_create (1031, 0);

    for (p = md; p; p = p->next)
 -    hash_insert (fnames, p->h->path, p, 0);
 +  {
 +    /* the hash key must survive past the header, which is freed below.
 */
 +    p->canon_fname = safe_strdup (p->h->path);
 +    hash_insert (fnames, p->canon_fname, p, 0);
 +  }

    for (i = 0; i < ctx->msgcount; i++)
    {

 }}}

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3797#comment:10>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to