GNOME Bugzilla – Bug 171220
xml Schemas : memory fault when using invalid enumeration value
Last modified: 2009-08-15 18:40:50 UTC
If using the CVS HEAD version (20618-CVS2385), xmllint --schema test-enum.xsd test-enum.xml produces a memory fault (see files attached). Here is the gdb stack :
+ Trace 57171
This memory fault comes from xmlschemas.c:15665, since xmlSchemaVFacetErr is called with facet = NULL and error != XML_SCHEMAV_CVC_ENUMERATION_VALID. It doesn't occur with version 2.6.18.
Created attachment 39072 [details] test-enum.xsd : schema for the test case
Created attachment 39073 [details] test-enum.xml : xml file reproducing the bug
Yes, setting the error type to XML_SCHEMAV_CVC_ENUMERATION_VALID healed this issue. Fixed in CVS, xmlschemas.c rev 1.122. Thanks for the report!
This should be closed by release of libxml2-2.6.21, thanks, Daniel