An issue was discovered in Mutt before 1.10.1 and NeoMutt before 2018-07-16. imap_quote_string in imap/util.c has an integer underflow.
https://www.debian.org/security/2018/dsa-4277
https://usn.ubuntu.com/3719-3/
https://usn.ubuntu.com/3719-1/
https://security.gentoo.org/glsa/201810-07
https://neomutt.org/2018/07/16/release
https://lists.debian.org/debian-lts-announce/2018/08/msg00001.html
https://gitlab.com/muttmua/mutt/commit/e0131852c6059107939893016c8ff56b6e42865d
https://github.com/neomutt/neomutt/commit/65d64a5b60a4a3883f2cd799d92c6091d8854f23