<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 9, 2021 at 8:34 AM Nikolay Sivov <<a href="mailto:nsivov@codeweavers.com">nsivov@codeweavers.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi, Damjan.<br>
<br>
I'm not very familiar with schema parts. Is it possible to add a test<br>
for this change?<br>
<br></blockquote><div><br></div><div><div>Hi Nikolay<br></div><div><br></div><div>We already have the necessary tests for this.</div><div><br></div><div>Using an affected libxml2 version (2.9.12, possibly 2.9.11 too):</div><div><br></div><div>WINEDEBUG='+msxml' wine msxml3_test.exe schema</div><div><br></div><div>With my patch:<br></div><div>0020:schema: 979 tests executed (39 marked as todo, 0 failures), 0 skipped.<br></div><div><br></div><div>Without my patch:<br></div><div>...<br></div><div>regexp error : failed to compile: Improper quantifier<br>regexp error : failed to compile: xmlFAParseRegExp: extra characters<br>0024:err:msxml:Schema_parse error code 1756: Element '{<a href="http://www.w3.org/2001/XMLSchema%7Dpattern" target="_blank">http://www.w3.org/2001/XMLSchema}pattern</a>': The value '([0-9]{,14})([.][0-9]{,4})?' of the facet 'pattern' is not a valid regular expression.<br>regexp error : failed to compile: Improper quantifier<br>regexp error : failed to compile: xmlFAParseAtom: expecting ')'<br>regexp error : failed to compile: xmlFAParseRegExp: extra characters<br>0024:err:msxml:Schema_parse error code 1756: Element '{<a href="http://www.w3.org/2001/XMLSchema%7Dpattern" target="_blank">http://www.w3.org/2001/XMLSchema}pattern</a>': The value '([0-9A-Fa-f]{4})([-]{,1}[0-9A-Fa-f]{4})*' of the facet 'pattern' is not a valid regular expression.<br>0024:fixme:msxml:cache_entry_from_xdr_doc failed to parse doc<br>0024:trace:msxml:domdoc_Release (0x260cb8)->(1)<br>schema.c:526: Test failed: IXMLDOMSchemaCollection_add(cache, NULL, _variantdoc_(doc)) returned 80004005<br>0024:trace:msxml:schema_cache_get_length (0x260e08)->(0x21fba4)<br>schema.c:529: Test failed: got 0<br>0024:trace:msxml:schema_cache_get_namespaceURI (0x260e08)->(0 0x21fba8)<br>schema.c:532: Test failed: IXMLDOMSchemaCollection_get_namespaceURI(cache, 0, &str) returned 80004005<br>schema.c:533: Test failed: got 00000000<br>0024:trace:msxml:schema_cache_get (0x260e08)->((null) 0x21fbc4)<br>schema.c:538: Test failed: 00000000<br>wine: Unhandled page fault on read access to 00000000 at address 6286F028 (thread 0024), starting debugger...<br>couldn't load main module (2)<br>Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x6286f028).</div> </div></div></div>