mirror of
https://github.com/GNOME/libxml2.git
synced 2025-03-13 18:47:01 +08:00
fixed a couple of stupid bugs in the state allocation routines which led
* relaxng.c: fixed a couple of stupid bugs in the state allocation routines which led to bug #120040 and the ones reported by Martijn Faassen Daniel
This commit is contained in:
parent
123e93d7ac
commit
73827cbedf
@ -1,3 +1,9 @@
|
||||
Mon Aug 25 12:37:05 CEST 2003 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* relaxng.c: fixed a couple of stupid bugs in the state allocation
|
||||
routines which led to bug #120040 and the ones reported by
|
||||
Martijn Faassen
|
||||
|
||||
Mon Aug 25 12:37:23 CEST 2003 Igor Zlatkovic <igor@zlatkovic.com>
|
||||
|
||||
* include/libxml/parserInternals.h include/libxml/relaxng.h
|
||||
|
@ -1076,6 +1076,7 @@ xmlRelaxNGNewValidState(xmlRelaxNGValidCtxtPtr ctxt, xmlNodePtr node)
|
||||
return (ret);
|
||||
}
|
||||
ret->attrs = tmp;
|
||||
ret->maxAttrs = nbAttrs;
|
||||
}
|
||||
ret->nbAttrs = nbAttrs;
|
||||
if (nbAttrs < MAX_ATTR) {
|
||||
@ -1153,6 +1154,7 @@ xmlRelaxNGCopyValidState(xmlRelaxNGValidCtxtPtr ctxt,
|
||||
return (ret);
|
||||
}
|
||||
ret->maxAttrs = state->maxAttrs;
|
||||
ret->attrs = tmp;
|
||||
}
|
||||
memcpy(ret->attrs, state->attrs, state->nbAttrs * sizeof(xmlAttrPtr));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user