mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
found and fixed a bug misallocating some non blank text node strings from
* SAX2.c: found and fixed a bug misallocating some non blank text node strings from the dictionnary. * xmlmemory.c: fixed a problem with the memory debug mutex release. Daniel
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
Fri Jan 2 11:40:06 CET 2004 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* SAX2.c: found and fixed a bug misallocating some non
|
||||||
|
blank text node strings from the dictionnary.
|
||||||
|
* xmlmemory.c: fixed a problem with the memory debug mutex
|
||||||
|
release.
|
||||||
|
|
||||||
Wed Dec 31 22:02:37 HKT 2003 William Brack <wbrack@mmm.com.hk>
|
Wed Dec 31 22:02:37 HKT 2003 William Brack <wbrack@mmm.com.hk>
|
||||||
|
|
||||||
* xinclude.c: fixed problem caused by wrong dictionary
|
* xinclude.c: fixed problem caused by wrong dictionary
|
||||||
|
2
SAX2.c
2
SAX2.c
@@ -1670,7 +1670,7 @@ xmlSAX2TextNode(xmlParserCtxtPtr ctxt, const xmlChar *str, int len) {
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 1;i < len;i++) {
|
for (i = 1;i < len;i++) {
|
||||||
if (!IS_BLANK_CH(*str)) goto skip;
|
if (!IS_BLANK_CH(str[i])) goto skip;
|
||||||
}
|
}
|
||||||
intern = xmlDictLookup(ctxt->dict, str, len);
|
intern = xmlDictLookup(ctxt->dict, str, len);
|
||||||
}
|
}
|
||||||
|
@@ -822,6 +822,7 @@ xmlCleanupMemory(void) {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
xmlFreeMutex(xmlMemMutex);
|
xmlFreeMutex(xmlMemMutex);
|
||||||
|
xmlMemMutex = NULL;
|
||||||
xmlMemInitialized = 0;
|
xmlMemInitialized = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user