From 2fb79bff5c3ca10c65d0a426d1d4da4e1e3247c6 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Fri, 26 Jan 2018 18:08:48 -0700 Subject: * If a calendar entry has an entry that is not encoded in UTF-8, Alpine fails to parse that specific field, and may assign a value that uses unallocated memory, making Alpine crash when quitting and freeing that memory. Reported by Stefan Mueller. --- pith/ical.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pith/ical.c b/pith/ical.c index 64731a96..d2c8e2ba 100644 --- a/pith/ical.c +++ b/pith/ical.c @@ -573,6 +573,12 @@ char *ical_get_value(char **line) *s = '\r'; *line = s+2; } + else{ + t = NULL; + s = strchr(*line, '\r'); + if(s != NULL) + *line = s + 2; + } return t; } -- cgit v1.2.3-54-g00ecf