mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-10-26 12:25:09 +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:
parent
1ff4213edd
commit
1a9b7084f6
@ -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>
|
||||
|
||||
* 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;
|
||||
|
||||
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);
|
||||
}
|
||||
|
@ -822,6 +822,7 @@ xmlCleanupMemory(void) {
|
||||
return;
|
||||
|
||||
xmlFreeMutex(xmlMemMutex);
|
||||
xmlMemMutex = NULL;
|
||||
xmlMemInitialized = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user