]> granicus.if.org Git - neomutt/commit
Fix menu type in certificate prompt. (see #3779)
authorKevin McCarthy <kevin@8t8.us>
Sun, 4 Oct 2015 02:08:45 +0000 (10:08 +0800)
committerKevin McCarthy <kevin@8t8.us>
Sun, 4 Oct 2015 02:08:45 +0000 (10:08 +0800)
commit892bb0f52eeba132780a495e485ebf7c4c0b35f9
treef4cc368c859842d9ca2404fce4dbd5f7908f7e8a
parent230bc410776fa164a5096b2eec3ddb90de5f20d4
Fix menu type in certificate prompt.  (see #3779)

The menu type is used in several places as a direct index into
Keymaps[], so passing in -1 to mutt_new_menu() was leading to illegal
memory accesses later on.

Add a range check in mutt_new_menu(), defaulting to MENU_GENERIC, to
prevent this problem in the future.
menu.c
mutt_ssl.c
mutt_ssl_gnutls.c