[schema] memory leak while validating xml against schema
noname.xmlleak-cde2f5b269c9925799bb7c83530b52853f060c2f
Please build libxml2 tests using ASAN. Then you can reproduce like so
$ ./testSchemas leak-cde2f5b269c9925799bb7c83530b52853f060c2f noname.xml &> report
$ cat report
leak-cde2f5b269c9925799bb7c83530b52853f060c2f:3: namespace
warning : xmlns: URI NISTSchema-SV-IV-union-anyURI-float-enumeration-1-NS is not absolute
xmlns="NISTSchema-SV-IV-union-anyURI-float-enumeration-1-NS" ^
../oss-fuzz/leak-cde2f5b269c9925799bb7c83530b52853f060c2f:9: element schema: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema
}schema', attribute 'targetNamespace': 'NISTSchema-SV-IV-union-anyURI-fl The National Institute of Standards and Technology. Confo
rmance test for W3C XML Schema Part 2: Datatypes. Created Jan 13, 2004. File: NISTSoat-enumeration-1-NS' is not a valid value of
the atomic type 'xs:anyURI'.
=================================================================
==7657==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 219 byte(s) in 1 object(s) allocated from:
#0 0x4dac90 in malloc (/home/bhargava/work/github/libxml2/testSche$
as+0x4dac90)
#1 0x780edb in xmlStrndup (/home/bhargava/work/github/libxml2/test$
chemas+0x780edb)
#2 0x78103f in xmlStrdup (/home/bhargava/work/github/libxml2/testS$
hemas+0x78103f)
#3 0x89a3a1 in xmlSchemaCollapseString (/home/bhargava/work/github$
libxml2/testSchemas+0x89a3a1)
#4 0x89afcd in xmlSchemaValAtomicType (/home/bhargava/work/github/$
ibxml2/testSchemas+0x89afcd)
#5 0x89aa05 in xmlSchemaValPredefTypeNode (/home/bhargava/work/git$
ub/libxml2/testSchemas+0x89aa05)
#6 0x802c64 in xmlSchemaPValAttrNodeValue (/home/bhargava/work/git$
ub/libxml2/testSchemas+0x802c64)
...