[redland-dev] [Raptor RDF Syntax Library 0000481]: Invalid unicode characters cause raptor to emit infinite output while converting n-quads to n-triples

Mantis Bug Tracker mantis-bug-sender at librdf.org
Fri Nov 11 01:46:55 CET 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.librdf.org/mantis/view.php?id=481 
====================================================================== 
Reported By:                kasei
Assigned To:                
====================================================================== 
Project:                    Raptor RDF Syntax Library
Issue ID:                   481
Category:                   utilities
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Syntax Name:                ntriples 
====================================================================== 
Date Submitted:             2011-11-11 00:46
Last Modified:              2011-11-11 00:46
====================================================================== 
Summary:                    Invalid unicode characters cause raptor to emit
infinite output while converting n-quads to n-triples
Description: 
This triple (from the BTC2011 dataset) has invalid unicode characters that cause
rapper to emit an infinite sequence of output while converting the statement
from n-quads to n-triples:


_:httpx3Ax2Fx2Fapix2Ehi5x2Ecomx2Frestx2Fprofilex2Ffoafx2F504083723xxbnode229
<http://xmlns.com/foaf/0.1/nick>
"\u0102\uD838\uDF06\u0941\u04EANONGJEE\u04EA\u0941\uD838\uDF06\u0102"
<http://api.hi5.com/rest/profile/foaf/504083723> .


Steps to Reproduce: 
echo
'_:httpx3Ax2Fx2Fapix2Ehi5x2Ecomx2Frestx2Fprofilex2Ffoafx2F504083723xxbnode229
<http://xmlns.com/foaf/0.1/nick>
"\u0102\uD838\uDF06\u0941\u04EANONGJEE\u04EA\u0941\uD838\uDF06\u0102"
<http://api.hi5.com/rest/profile/foaf/504083723> .' | ~/local/bin/rapper -i
nquads -o ntriples - http://base/


Additional Information: 
16:39 <@dajobe:#redland> yeah raptor_unicode_utf8_string_get_char has returned
-2
16:39 <@dajobe:#redland> which isn't checked
16:39 <@dajobe:#redland> around raptor_turtle_writer.c:461

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-11-11 00:46 kasei          New Issue                                    
======================================================================



More information about the redland-dev mailing list