Re: [Mutt] #3288: seg fault in mx_update_context
#3288: seg fault in mx_update_context
--------------------+-------------------------------------------------------
Reporter: prlw1 | Owner: brendan
Type: defect | Status: accepted
Priority: major | Milestone:
Component: IMAP | Version: 1.5.20
Keywords: patch |
--------------------+-------------------------------------------------------
Comment(by prlw1):
I should also add that
{{{
(gdb) print *ctx
$5 = {path = 0xbb795ba0 "imap://localhost/INBOX", fp = 0x0, mtime = 0,
size = 3062720723, vsize = 0, pattern = 0x0, limit_pattern = 0x0,
hdrs = 0xbb301000, last_tag = 0x0, tree = 0x0, id_hash = 0x0,
subj_hash = 0x0, thread_hash = 0x0, v2r = 0xbb201000, hdrmax = 235063,
msgcount = 235037, vcount = 234938, tagged = 0, new = 219, unread =
234851,
deleted = 0, flagged = 0, msgnotreadyet = -1, magic = 5, rights = "ï\a",
locked = 0, changed = 0, readonly = 0, dontwrite = 0, append = 0, quiet
= 0,
collapsed = 0, closing = 0, data = 0xbb7670c0,
mx_close = 0x80b8920 <imap_close_mailbox>}
}}}
i.e., ctx->msgcount = 235037 > msgno = 234938, so it isn't the red herring
that ctx->hdrs[msgcount] should be NULL.
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3288#comment:10>
Mutt <http://www.mutt.org/>
The Mutt mail user agent