~ubuntu-branches/ubuntu/vivid/mutt/vivid-updates

« back to all changes in this revision

Viewing changes to color.c

Tags: 1.5.18-6
* Grab from upstream:
  + Guard idata->mailbox read in imap_mailbox_state.
    The bug happens when a user has more than a imap mailbox, when
    he/she browses through them mutt will segfault.
    (Closes: #462266, #513230, #514309. Mutt: #3057)

Show diffs side-by-side

added added

removed removed

Lines of Context:
254
254
 
255
255
  init_pair(i, fg, bg);
256
256
 
257
 
  dprint(1,(debugfile,"mutt_alloc_color(): Color pairs used so far: %d\n",
258
 
                       UserColors));
 
257
  dprint (3, (debugfile,"mutt_alloc_color(): Color pairs used so far: %d\n",
 
258
              UserColors));
259
259
 
260
260
  return (COLOR_PAIR (p->index));
261
261
}
515
515
  else
516
516
  {
517
517
    int r;
518
 
    char buf[STRING];
 
518
    char buf[LONG_STRING];
519
519
 
520
520
    tmp = mutt_new_color_line ();
521
521
    if (is_index)