[evolution] Bug 694159 - Malformed content-type header causes infinite recursion



commit ca30703f70b56e91afa84ccb41ac02fbe87fd0df
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun Feb 24 21:46:36 2013 -0500

    Bug 694159 - Malformed content-type header causes infinite recursion

 em-format/e-mail-formatter-attachment.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/em-format/e-mail-formatter-attachment.c b/em-format/e-mail-formatter-attachment.c
index e81f56b..25df816 100644
--- a/em-format/e-mail-formatter-attachment.c
+++ b/em-format/e-mail-formatter-attachment.c
@@ -269,6 +269,12 @@ emfe_attachment_format (EMailFormatterExtension *extension,
                                context->part_list,
                                empa->attachment_view_part_id);
 
+                       /* Avoid recursion. */
+                       if (attachment_view_part == part) {
+                               e_mail_part_unref (attachment_view_part);
+                               attachment_view_part = NULL;
+                       }
+
                        if (attachment_view_part != NULL) {
                                ok = e_mail_formatter_format_as (
                                        formatter, context,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]