summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2020-08-13 09:42:24 -0600
committerEduardo Chappa <chappa@washington.edu>2020-08-13 09:42:24 -0600
commit6a37360355f253c2e6719d40f932534ed2607658 (patch)
tree7198317f4bede5d9c753e30f323418c1a33c0bf4
parentff2e56dffa4a6d16bc7bcc540bb578877753a81a (diff)
downloadalpine-6a37360355f253c2e6719d40f932534ed2607658.tar.xz
* Crash while resizing the screen when viewing a calendar event.
-rw-r--r--alpine/mailpart.c14
-rw-r--r--pith/pine.hlp4
2 files changed, 10 insertions, 8 deletions
diff --git a/alpine/mailpart.c b/alpine/mailpart.c
index 5e1cac9..f6b8cdb 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 e2c22d5..d9c34c5 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 =================
<HTML>
<HEAD>
@@ -258,6 +258,8 @@ Bugs addressed:
<LI> When Alpine starts a PREAUTH connection, it might still ask the user
to login. Reported by Frank Tobin.
+<LI> Crash while resizing the screen when viewing a calendar event.
+
<LI> 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.