Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > media > main-src > by-pkgid > 6709f41e1c9c0ac6e610e609c299d4fb > files > 16

libxml2-2.6.26-2.1.12.el5_7.2.src.rpm

commit 8f58f89d37f14a9d8997b040610cbdbebfdfccc9
Author: Miroslav Bajtos <bajtos.miroslav.jr@gmail.com>
Date:   Fri Aug 7 17:22:12 2009 +0200

    Bug 579729 – fix XSD schemas parsing crash
    
    * xmlschemas.c: a typo in XSD schema validation, where inherited
      bfminlen rewrote blength and caused SIGSEGV

diff --git a/xmlschemas.c b/xmlschemas.c
index ed3a531..9050684 100644
--- a/xmlschemas.c
+++ b/xmlschemas.c
@@ -17289,7 +17289,7 @@ xmlSchemaDeriveAndValidateFacets(xmlSchemaParserCtxtPtr pctxt,
 	flength = bflength;
     if (flength) {
 	if (! fminlen)
-	    flength = bflength;
+	    fminlen = bfminlen;
 	if (fminlen) {
 	    /* (1.1) length >= minLength */
 	    res = xmlSchemaCompareValues(flength->val, fminlen->val);