mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2026-01-26 21:41:34 +03:00
relaxng: Fix tree corruption in xmlRelaxNGParseNameClass
Don't create cycles in tree structure. This will lead to an infinite loop or call stack overflow later. Closes: https://gitlab.gnome.org/GNOME/libxml2/-/issues/711
This commit is contained in:
committed by
Nick Wellnhofer
parent
16ccb61dc1
commit
5bb84b47b8
15
test/relaxng/anyName1.rng
Normal file
15
test/relaxng/anyName1.rng
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
|
||||
<start>
|
||||
<element>
|
||||
<choice>
|
||||
<name>c</name>
|
||||
<choice>
|
||||
<name>a</name>
|
||||
<name>b</name>
|
||||
</choice>
|
||||
</choice>
|
||||
<empty/>
|
||||
</element>
|
||||
</start>
|
||||
</grammar>
|
||||
1
test/relaxng/anyName1_0.xml
Normal file
1
test/relaxng/anyName1_0.xml
Normal file
@@ -0,0 +1 @@
|
||||
<b/>
|
||||
Reference in New Issue
Block a user