From e937001007df277faca143d3edce6138ee143faa Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Mon, 12 Feb 2018 20:49:25 -0700 Subject: [PATCH] * Crash when the body of a calendar is empty. Reported by Stefan Mueller. --- pith/mailview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pith/mailview.c b/pith/mailview.c index 9e8e8de..dc9b29b 100644 --- a/pith/mailview.c +++ b/pith/mailview.c @@ -490,7 +490,7 @@ format_calendar(long int msgno, BODY *body, HANDLE_S **handlesp, int flgs, int w } if(b->sparep == NULL){ rawtext = mail_fetch_body(ps_global->mail_stream, msgno, a->number, &callen, 0); - if(rawtext == NULL){ + if(rawtext == NULL || *rawtext == '\0'){ gf_puts(_("Error fetching calendar text"), pc); gf_puts(NEWLINE, pc); continue; -- 2.11.4.GIT