From 6a37360355f253c2e6719d40f932534ed2607658 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Thu, 13 Aug 2020 09:42:24 -0600 Subject: * Crash while resizing the screen when viewing a calendar event. --- alpine/mailpart.c | 14 +++++++------- pith/pine.hlp | 4 +++- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/alpine/mailpart.c b/alpine/mailpart.c index 5e1cac9a..f6b8cdba 100644 --- a/alpine/mailpart.c +++ b/alpine/mailpart.c @@ -3108,14 +3108,7 @@ display_vevent_summary(long int msgno, ATTACH_S *a, int flags, int depth) return; } - if((out_store = so_get(CharStar, NULL, EDIT_ACCESS)) == NULL){ - q_status_message(SM_ORDER | SM_DING, 3, 3, - _("Error allocating space to write Calendar")); - return; - } - gf_set_so_readc(&gc, in_store); - gf_set_so_writec(&pc, out_store); for(vesy = vsummary, k = 0; vesy; vesy = vesy->next, k++){ if(depth >= 0 && k != depth) @@ -3253,6 +3246,13 @@ display_vevent_summary(long int msgno, ATTACH_S *a, int flags, int depth) do{ so_seek(in_store, 0L, 0); + if((out_store = so_get(CharStar, NULL, EDIT_ACCESS)) == NULL){ + q_status_message(SM_ORDER | SM_DING, 3, 3, + _("Error allocating space to write Calendar")); + return; + } + + gf_set_so_writec(&pc, out_store); init_handles(&handles); gf_filter_init(); diff --git a/pith/pine.hlp b/pith/pine.hlp index e2c22d5b..d9c34c59 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 502 2020-08-06 22:57:31 +Alpine Commit 503 2020-08-13 09:42:11 ============= h_news ================= @@ -258,6 +258,8 @@ Bugs addressed:
  • When Alpine starts a PREAUTH connection, it might still ask the user to login. Reported by Frank Tobin. +
  • Crash while resizing the screen when viewing a calendar event. +
  • When Alpine opens a folder in a server whose address is given numerically it might crash due to an incorrect freeing of memory. Reported by Wang Kang. -- cgit v1.2.3-54-g00ecf