[Users] [Bug 3675] New: RSSyl crash when opening Atom feed

noreply at thewildbeast.co.uk noreply at thewildbeast.co.uk
Sun Aug 21 16:49:54 CEST 2016


http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=3675

            Bug ID: 3675
           Summary: RSSyl crash when opening Atom feed
    Classification: Unclassified
           Product: Claws Mail
           Version: 3.14.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Plugins/RSSyl
          Assignee: users at lists.claws-mail.org
          Reporter: tosh at t0x0sh.org

Created attachment 1674
  -->
http://www.thewildbeast.co.uk/claws-mail/bugzilla/attachment.cgi?id=1674&action=edit
The attached file reproduce the bug in the 3.14.0 version.

The RSSyl plugin crash when it tries to open an Atom feed where the "xmlns"
attribute isn't present in the <feed> tag.

I think the error occures in the _elparse_start_chooser function (parsers.c:90)
of the libfeed library :

            /* 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") )
                feedtype = FEED_TYPE_ATOM_10;
            else
                feedtype = FEED_TYPE_ATOM_03;


In this piece of code, the return of the feed_parser_get_attribute_value isn't
checked : a NULL pointer can be passed to the strcmp function if the attribute
"xmlns" doesn't exist.

The attached file reproduce the bug in the 3.14.0 version.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Users mailing list