[Commits] [SCM] claws branch, master, updated. 3.14.0-19-g7734bcf

ticho at claws-mail.org ticho at claws-mail.org
Sun Aug 21 17:00:27 CEST 2016


The branch, master has been updated
       via  7734bcfabb5152ae4d91c1e1f2bb7a29d272e26f (commit)
      from  7635e2f51c93610b93b3150be91957ad1a2f73d5 (commit)

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


- Log -----------------------------------------------------------------
commit 7734bcfabb5152ae4d91c1e1f2bb7a29d272e26f
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Sun Aug 21 16:58:22 2016 +0200

    Fix crash when an Atom feed's opening tag doesn't have xmlns attribute.
    
    Closes bug #3675.

diff --git a/src/plugins/rssyl/libfeed/parser.c b/src/plugins/rssyl/libfeed/parser.c
index 033f800..68694ab 100644
--- a/src/plugins/rssyl/libfeed/parser.c
+++ b/src/plugins/rssyl/libfeed/parser.c
@@ -87,8 +87,9 @@ static void _elparse_start_chooser(void *data,
 
 			/* ATOM feed detected, let's check version */
 			version = feed_parser_get_attribute_value(attr, "xmlns");
-			if( !strcmp(version, "http://www.w3.org/2005/Atom") ||
-					!strcmp(version, "https://www.w3.org/2005/Atom") )
+			if( version != NULL &&
+					(!strcmp(version, "http://www.w3.org/2005/Atom") ||
+					 !strcmp(version, "https://www.w3.org/2005/Atom")) )
 				feedtype = FEED_TYPE_ATOM_10;
 			else
 				feedtype = FEED_TYPE_ATOM_03;

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list