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

Re: crash in imap_expunge_mailbox (similar to #2175)



On Tuesday, March  7 at 11:07 AM, quoth Kyle Wheeler:
I found another crash, in mx_update_context, in mx.c (around line 1577). The avoidance is simple:

And another one (hey, two in one day!), also in mx.c, mx_update_tables() around line 1044. The avoidance is again simple:

 for (i = 0, j = 0; i < ctx->msgcount; i++)
 {
+   if (! ctx->hdrs[i]) continue;
   if ((committing && (!ctx->hdrs[i]->deleted ||
                       (ctx->magic == M_MAILDIR && option (OPTMAILDIRTRASH)))) 
||
       (!committing && ctx->hdrs[i]->active))
   {

I don’t know if these little one-liners are helping anybody… but hey, a little assumption-verification never hurt anybody.

~Kyle
--
The whole art of government consists in the art of being honest.
                   -- Thomas Jefferson: Rights of British America, 1774

Attachment: pgp8jRblJ8BCw.pgp
Description: PGP signature