From a75a6e47a5c181dc3e6c039b2c06103085ef9dff Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Sat, 25 Jan 2020 11:48:08 -0700 Subject: * Crash in Alpine when attempting to reply to a multipart/alternative message that is malformed, and the option to include attachments in reply is enabled. Reported and patched by Peter Tirsek. --- pith/pine.hlp | 6 +++++- pith/reply.c | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pith/pine.hlp b/pith/pine.hlp index 2dda8a13..063e145b 100644 --- a/pith/pine.hlp +++ b/pith/pine.hlp @@ -140,7 +140,7 @@ with help text for the config screen and the composer that didn't have any reasonable place to be called from. Dummy change to get revision in pine.hlp ============= h_revision ================= -Alpine Commit 396 2020-01-25 11:12:17 +Alpine Commit 397 2020-01-25 11:48:03 ============= h_news ================= @@ -183,6 +183,10 @@ any problems you find with this release. New enhancements of the directory where folders are located. In PC-Alpine this must be C:\\libressl\\ssl\\certs. The C: drive can be replaced by the name of the drive where the binary and DLL files are located. + +
  • Crash in Alpine when attempting to reply to a multipart/alternative + message that is malformed, and the option to include attachments in + reply is enabled. Reported and patched by Peter Tirsek.

    diff --git a/pith/reply.c b/pith/reply.c index 3a75321e..ab4e97c2 100644 --- a/pith/reply.c +++ b/pith/reply.c @@ -1169,6 +1169,7 @@ reply_body(MAILSTREAM *stream, ENVELOPE *env, struct mail_bodystruct *orig_body, else if(orig_body->subtype && !strucmp(orig_body->subtype, "alternative") && orig_body->nested.part + && orig_body->nested.part->next && orig_body->nested.part->next->body.type == TYPEMULTIPART && orig_body->nested.part->next->body.subtype && !strucmp(orig_body->nested.part->next->body.subtype, "MIXED")) -- cgit v1.2.3-70-g09d2