Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37896658
en ru br
Репозитории ALT
5.1: 4.64L-alt6
4.1: 4.64L-alt5
4.0: 4.64L-alt4.1
3.0: 4.58L-alt4
+backports:4.64L-alt0.M30.4
www.altlinux.org/Changes

Группа :: Сети/Почта
Пакет: pine

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: multipart-alternative-conversion.patch
Скачать


--- pine4.64/pine/reply.c
+++ pine4.64/pine/reply.c
@@ -4598,6 +4599,11 @@
 	body			 =  mail_newbody();
 	body->type		 = TYPETEXT;
 	body->contents.text.data = msgtext;
+	/*
+	 * For giving get_body_part_text the charset from which it has
+	 * to convert from, reset afterwards to prevent double free!
+	 */
+	body->parameter		 = part->body.parameter;
 
 	if(!(flags & FWD_ANON)){
 	    forward_delimiter(pc);
@@ -4609,6 +4611,12 @@
 		sect_prefix ? "." : "", flags & FWD_NESTED ? "1." : "",
 		partnum);
 	get_body_part_text(stream, body, msgno, tmp_buf, pc, NULL);
+	/*
+	 * Reset it, otherwise send thinks it's not converted, and since
+	 * the parameter list was not copied, only the pointer to it, it
+	 * it needed to be reset to prevent a second, double free later!
+	 */
+	body->parameter = NULL;
     }
     else
       q_status_message(SM_ORDER | SM_DING, 3, 3,
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin