]> granicus.if.org Git - neomutt/commit
Fix mfc overflow check and uninitialized variable.
authorKevin McCarthy <kevin@8t8.us>
Mon, 22 May 2017 11:43:24 +0000 (04:43 -0700)
committerRichard Russon <rich@flatcap.org>
Wed, 24 May 2017 01:22:56 +0000 (02:22 +0100)
commit12c0e4da81f8ddadba391f8ed2f5622057ea2e04
tree33cfe9dd6bf0269ddc1cfbae22d7c301b2e2e319
parent61347577d207fd27c39774e0ca4758e43032fcb8
Fix mfc overflow check and uninitialized variable.

The check borrowed from mx_alloc_memory() works because it is
incremented 25 at a time.  I don't believe it will work for the direct
set case used in imap_alloc_msn_index().  Instead, use a more
conservative check.

In imap_read_headers(), make sure mfhrc is initialized.  It would be
tested without being set if imap_cmd_step() returned OK right away.
imap/message.c