1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-09 04:58:16 +03:00

applied patch from Kuba Nowakowski fixing bug #313982 also added the test

* xmlschemastypes.c: applied patch from Kuba Nowakowski fixing bug
  #313982
* result/schemas/bug313982* test/schemas/bug313982*: also added
  the test case to the regression suite.
Daniel
This commit is contained in:
Daniel Veillard 2005-08-22 16:01:43 +00:00
parent a4181227e9
commit 4f917e2416
6 changed files with 25 additions and 0 deletions

View File

@ -1,3 +1,10 @@
Mon Aug 22 18:00:18 CEST 2005 Daniel Veillard <daniel@veillard.com>
* xmlschemastypes.c: applied patch from Kuba Nowakowski fixing bug
#313982
* result/schemas/bug313982* test/schemas/bug313982*: also added
the test case to the regression suite.
Mon Aug 22 17:50:20 CEST 2005 Daniel Veillard <daniel@veillard.com>
* testRegexp.c: printed the wrong string

View File

@ -0,0 +1 @@
./test/schemas/bug313982_0.xml validates

View File

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<testDecimalFacet xmlns="http://www.foo.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.foo.com bug313982_0.xsd">0.99</testDecimalFacet>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.foo.com" elementFormDefault="qualified"
xmlns="http://www.foo.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="testDecimalFacet">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:schema>

View File

@ -2284,6 +2284,8 @@ xmlSchemaValAtomicType(xmlSchemaTypePtr type, const xmlChar * value,
*cptr++ = *cur++;
len++;
} else if (*cur == '.') {
if (len == 0)
len++;
if (dec != ~0u)
goto return1; /* multiple decimal points */
cur++;