<<< Date Index >>>     <<< Thread Index >>>

Re: [Mutt] #2175: IMAP header cache segfault



#2175: IMAP header cache segfault

Changes (by brendan):

  * milestone:  => 1.6

Old description:

> {{{
> I'm using mutt with an IMAP server and have enabled the IMAP header
> cache.  At times mutt segfaults when opening an already cached folder
> with a few thousand mails.  The variable header_cache points to a
> directory if that matters.
>
> Mutt crashes because the variable 'h' on imap/command.c:485 is NULL which
> is dereference two lines below.
> >How-To-Repeat:
> >Fix:
> An obvious thing to do would be to test if h != NULL before dereferencing
> it.  But maybe the bug is elsewhere and idata->ctx->hdrs[i] should never
> be NULL.
> }}}

New description:

 I'm using mutt with an IMAP server and have enabled the IMAP header cache.
 At times mutt segfaults when opening an already cached folder with a few
 thousand mails.  The variable header_cache points to a directory if that
 matters.

 Mutt crashes because the variable 'h' on imap/command.c:485 is NULL which
 is dereference two lines below.
 >How-To-Repeat:
 >Fix:
 An obvious thing to do would be to test if h != NULL before dereferencing
 it.  But maybe the bug is elsewhere and idata->ctx->hdrs[i] should never
 be NULL.

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/2175#comment:1>