[redland-dev] Another RSS Parser Bug
Suzan Foster
su at islief.nl
Sun Jun 5 15:37:06 BST 2005
This is caused due to no check on if
rss_parser->common[RAPTOR_RSS_CHANNEL] is NULL. The enclosed patch adds
the check.
Regards,
Suzan Foster.
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: raptor_rss.patch
Type: application/octet-stream
Size: 600 bytes
Desc: not available
Url : http://lists.gnomehack.com/pipermail/redland-dev/attachments/20050605/8ab2915b/raptor_rss.obj
-------------- next part --------------
On Jun 5, 2005, at 2:02 PM, Christopher Schmidt wrote:
> List,
>
> A less high priority RSS parser segfault, this one as a result of
> passing
> RDF/XML content through the rss-tag-soup parser:
>
> http://www.getfridged.com/alcoholix/pub-rdf.php?id=2
>
> Backtrace is:
>
> #0 0x4003e503 in raptor_rss_emit (rdf_parser=0x8056428) at
> raptor_rss.c:1414
> #1 0x4003e7f7 in raptor_rss_parse_chunk (rdf_parser=0x8056428, s=0x0,
> len=0,
> is_end=1) at raptor_rss.c:1535
> #2 0x400258ca in raptor_parse_chunk (rdf_parser=0x8, buffer=0x0,
> len=0,
> is_end=0) at raptor_parse.c:423
> #3 0x40025d80 in raptor_parse_uri_with_connection
> (rdf_parser=0x8056428,
> uri=0x80563a8, base_uri=0x0, connection=0x0) at raptor_parse.c:652
> #4 0x40025ca3 in raptor_parse_uri (rdf_parser=0x0, uri=0x0,
> base_uri=0x0)
> at raptor_parse.c:590
> #5 0x08049d18 in main (argc=4, argv=0xbffffb14) at rdfdump.c:688
>
> (Originally it was being delivered as text/xml, which is why it ever
> saw that parser).
>
> Works in Raptor 1.4.5, not in 1.4.6.
>
> --
> Christopher Schmidt
> _______________________________________________
> redland-dev mailing list
> redland-dev at lists.librdf.org
> http://lists.gnomehack.com/mailman/listinfo/redland-dev
More information about the redland-dev
mailing list