[redland-dev] rapper segfault
Dave Beckett
dave.beckett at bristol.ac.uk
Wed Jun 1 14:48:00 BST 2005
On Fri, 27 May 2005 14:16:00 -0400, crschmidt at crschmidt.net (Christopher Schmidt) wrote:
> Hi,
>
> It seems that the latest raptor (1.4.6) has problems with parsing
> the RSS 2.0 URI:
>
> http://flickr.com/services/feeds/photos_public.gne?id=90101639@N00&format=rss_200
>
> An older version does not have problems.
<snip/>
Fixed. It was caused by an update to the RSS tag soup parser to allow multiple
values of rss field. The attached patch fixes it with the data above.
Dave
-------------- next part --------------
--- raptor_rss.c.~1.77.~ Sat May 14 03:21:01 2005
+++ raptor_rss.c Wed Jun 1 14:44:47 2005
@@ -910,8 +910,10 @@
RAPTOR_DEBUG2(" setting guid to URI '%s'\n", attrValue);
field->uri=raptor_new_uri((const unsigned char*)attrValue);
} else {
+ size_t len=strlen((const char*)attrValue);
RAPTOR_DEBUG2(" setting guid to string '%s'\n", attrValue);
- field->value=(char*)attrValue;
+ field->value=(char*)RAPTOR_MALLOC(cstring, len+1);
+ strncpy(field->value, (char*)attrValue, len+1);
}
}
}
More information about the redland-dev
mailing list