Re: [PATCH] Fix attachment list crash for deeply nested message types.

"Kevin J. McCarthy" <[email protected]> Fri, 12 Jun 2026 10:27:37 +0800
Newsgroups gmane.mail.mutt.devel
Message-ID <[email protected]>
On Thu, Jun 11, 2026 at 11:09:22AM +0800, Kevin J. McCarthy wrote:
>Mutt already has checks for deeply nested mime.  However, for the
>message type, parts of the code assume body->header will be set.
>
>The current parser simply exited the recursion at a certain depth, but
>left the header set to NULL.  This caused a crash in the attachment
>list menu, but probably would cause crashes elsewhere in the code too.
>
>When deeply nested, instead change the type to text/plain before
>giving up.
>
>Thanks to Acts1631 for the bug report, sample message causing the
>crash, and possible suggested fix.  This fix is different from the
>suggestion, instead fixing the parser, rather than the attachment list
>code.

I've pushed this up, as I'm going to get a 2.3.3 release out this
afternoon.

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEiXWpszqjeRA4XFMIre92hIAxa9oFAmorbpkACgkQre92hIAx
a9p6Lw//QNHP4mAYmkpBU4n5nCmySHDxeq6ZvfL1aLtTZ4kSRDIdcq4Xgn5i9vnR
KeVxd03EbBDLgl22oCDJRKOsTlfa9dKmds79eF/AnGZRjzMHlyg8HKcUniN0qNeO
1qDwIIeyLn/MWJ1mZ5TtLbeQEHXK7NhVRus6BT3ROkhxquqUQ45CoHwYPkBd1kUI
vwZ+Es4u1m37uZNc8u7Y3bImcvUSUQZoOMWwSlyHUSmHG/660u80PvCyBtjZPX6w
+rr4wiYMrYsCy13+YKV3MaOKxc8taMqnIvIuxboXQ3g4CPE2kU5W8oG+/PF05VJv
VszfB70Q35HzYx9dTpKsDP5bb9j+fcUoqVwNP9VzoE/QezLJ0NBYxm/IAW1lo0pN
DQzlHCDHRuG7VjpQe2nM1F0GP3SOB48X2yNjav0XblSrhg7RTp8Lp6v7axmtUypu
PV/mPtJwJ1c+eUDA1vIGsl8JGZKFiVjqqb61xybAkGHPEvxDPkMqkoi8fh0DPU8A
Df6K+G5iI+JBpP1P4IUdX+Q0X0YQD9RX99h3urU5W5MV2xxhqT9EQ0J4H4FKMyuv
Amh0c8a7odItiL+2VIG89GGpC47TxHK8Ketmn0Vbkv1NDVtg2TC3bEJgVGoksnPt
Idj2LMl68sPeewMkabKvtB+gcjPzAQg2QuUK+74wHiRUMFkqaqg=
=3e8b
-----END PGP SIGNATURE-----