[evolution/webkit: 158/196] Fix possible crash when writing message/rfc822
- From: Dan VrÃtil <dvratil src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit: 158/196] Fix possible crash when writing message/rfc822
- Date: Tue, 27 Mar 2012 16:14:00 +0000 (UTC)
commit d99d1cd6059b026ff5e870ab4836eb1e1d8b5877
Author: Dan VrÃtil <dvratil redhat com>
Date: Tue Feb 21 14:18:43 2012 +0100
Fix possible crash when writing message/rfc822
mail/em-format-html.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/mail/em-format-html.c b/mail/em-format-html.c
index 7f2f0c6..61cba43 100644
--- a/mail/em-format-html.c
+++ b/mail/em-format-html.c
@@ -1382,7 +1382,11 @@ efh_write_message (EMFormat *emf,
if (!puri->is_attachment && puri->write_func) {
/* efh_write_message_rfc822 starts parsing _after_
* the passed PURI, so we must give it previous PURI here */
- EMFormatPURI *p = iter->prev->data;
+ EMFormatPURI *p;
+ if (!iter->prev)
+ continue;
+
+ p = iter->prev->data;
puri->write_func (emf, p, stream, info, cancellable);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]