[Commits] [SCM] claws branch, master, updated. 3.14.0-20-g89af524

ticho at claws-mail.org ticho at claws-mail.org
Sun Aug 21 21:37:35 CEST 2016


The branch, master has been updated
       via  89af524b6729737d8a3ad22a4aa1fe27481f80d1 (commit)
      from  7734bcfabb5152ae4d91c1e1f2bb7a29d272e26f (commit)

Summary of changes:
 src/plugins/rssyl/libfeed/parser_atom10.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 89af524b6729737d8a3ad22a4aa1fe27481f80d1
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Sun Aug 21 21:36:12 2016 +0200

    Fix NULL pointer dereference in Atom parser.
    
    Closes bug #3676.

diff --git a/src/plugins/rssyl/libfeed/parser_atom10.c b/src/plugins/rssyl/libfeed/parser_atom10.c
index 0ede945..c463be6 100644
--- a/src/plugins/rssyl/libfeed/parser_atom10.c
+++ b/src/plugins/rssyl/libfeed/parser_atom10.c
@@ -107,8 +107,9 @@ void feed_parser_atom10_start(void *data, const gchar *el, const gchar **attr)
 			}
 		}
 	} else if (ctx->depth >= 3) {
-		if (ctx->curitem->xhtml_content
-				&& ctx->location == FEED_LOC_ATOM10_CONTENT) {
+		if (ctx->location == FEED_LOC_ATOM10_CONTENT
+				&& ctx->curitem != NULL
+				&& ctx->curitem->xhtml_content) {
 			guint i;
 			GString *txt = ctx->xhtml_str;
 			g_string_append_c(txt, '<');

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list