[redland-dev] [Raptor RDF Syntax Library 0000648]: Raptor fails with segfault

Mantis Bug Tracker mantis-bug-sender at librdf.org
Sat Jan 19 14:17:23 EST 2019


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.librdf.org/mantis/view.php?id=648 
====================================================================== 
Reported By:                porton
Assigned To:                
====================================================================== 
Project:                    Raptor RDF Syntax Library
Issue ID:                   648
Category:                   api
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Syntax Name:                 
====================================================================== 
Date Submitted:             2019-01-19 19:17
Last Modified:              2019-01-19 19:17
====================================================================== 
Summary:                    Raptor fails with segfault
Description: 
The following Raptor 2.0.15 program crashes with segfault:

---
#include <raptor2.h>

int main() {
    raptor_world* world;
    raptor_term* term;
    world = raptor_new_world();
    term = raptor_new_term_from_counted_string(world,
                                               "\"ZZZ\"",
                                               3);
    raptor_free_term(term);
    raptor_free_world(world);

    return 0;
}
---

It is due nonsensical assignment `dest = p;` at raptor_ntriples.c:465. It seems
that after this assignment Raptor attempts to write to *dest that is to the
constant string "\"ZZZ\"".
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2019-01-19 19:17 porton         New Issue                                    
======================================================================



More information about the redland-dev mailing list