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

Attachment: signature.asc
Description: PGP signature

Reply via email to