[redland-dev] SEGV in rdfproc

Richard Smith richard at ex-parrot.com
Wed Sep 1 13:56:09 BST 2004


When I run

  mkdir -p store
  rdfproc store/rdf parse http://www.w3.org/1999/02/22-rdf-syntax-ns
  rdfproc store/rdf find - http://www.w3.org/1999/02/22-rdf-syntax-ns#type -

the latter command produces a SEGV when using the version of
rdfproc from redland-0.9.18.  This appears to because the
variable "results" declared in main() (on line 206 of
rdfproc.c) is never initialised, but is still being
dealloced (line 924).  Zero-initalising "results" on line
206 fixes this bug.

Hope this is of use.

--
Richard Smith



More information about the redland-dev mailing list