libxml2: update to 2.11.6

arm-master
pedro 2 years ago
parent 923b3fc165
commit 8653f9c31b

@ -2383,11 +2383,11 @@ libxml2: libxml2/stamp-h1
@$(MAKE) -C $@ DESTDIR=$(TOP)/libxml2/staged install
libxml2-install:
install -D libxml2/.libs/libxml2.so.2.11.5 $(INSTALLDIR)/libxml2/usr/lib/libxml2.so.2.11.5
$(STRIP) $(INSTALLDIR)/libxml2/usr/lib/libxml2.so.2.11.5
install -D libxml2/.libs/libxml2.so.2.11.6 $(INSTALLDIR)/libxml2/usr/lib/libxml2.so.2.11.6
$(STRIP) $(INSTALLDIR)/libxml2/usr/lib/libxml2.so.2.11.6
cd $(INSTALLDIR)/libxml2/usr/lib && \
ln -sf libxml2.so.2.11.5 libxml2.so.2 && \
ln -sf libxml2.so.2.11.5 libxml2.so
ln -sf libxml2.so.2.11.6 libxml2.so.2 && \
ln -sf libxml2.so.2.11.6 libxml2.so
libxml2-clean:
-@$(MAKE) -C libxml2 clean
@ -3384,7 +3384,7 @@ getdns-clean:
tor/stamp-h1:
cd tor && autoreconf -fsi && \
CFLAGS="$(if $(TCONFIG_BCMARM),-O3,-Os) -Wall $(EXTRACFLAGS) -I$(TOP)/$(OPENSSLDIR)/staged/usr/include -ffunction-sections -fdata-sections $(if $(TCONFIG_KEYGEN),,-DOPENSSL_NO_ENGINE)" \
CPPFLAGS="-I$(TOP)/$(OPENSSLDIR)/staged/usr/include" \
CPPFLAGS="-I$(TOP)/$(OPENSSLDIR)/staged/usr" \
LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
$(CONFIGURE) --prefix=/usr --with-libevent-dir=$(TOP)/libevent/staged/usr/local \
--with-openssl-dir=$(TOP)/$(OPENSSLDIR)/staged/usr --with-zlib-dir=$(TOP)/zlib/staged/usr \

@ -1,5 +1,17 @@
NEWS file for libxml2
v2.11.6: Nov 16 2023
### Regressions
- threads: Fix --with-thread-alloc
- xinclude: Fix 'last' pointer in xmlXIncludeCopyNode
### Bug fixes
- parser: Fix potential use-after-free in xmlParseCharDataInternal
v2.11.5: Aug 9 2023
### Regressions

@ -3,7 +3,7 @@ AC_PREREQ([2.63])
m4_define([MAJOR_VERSION], 2)
m4_define([MINOR_VERSION], 11)
m4_define([MICRO_VERSION], 5)
m4_define([MICRO_VERSION], 6)
AC_INIT([libxml2],[MAJOR_VERSION.MINOR_VERSION.MICRO_VERSION])
AC_CONFIG_SRCDIR([entities.c])

@ -4494,6 +4494,8 @@ get_more:
line = ctxt->input->line;
col = ctxt->input->col;
}
if (ctxt->instate == XML_PARSER_EOF)
return;
}
ctxt->input->cur = in;
if (*in == 0xD) {
@ -14322,7 +14324,9 @@ xmlInitParser(void) {
__xmlGlobalInitMutexLock();
if (xmlParserInitialized == 0) {
#endif
#if defined(_WIN32) && (!defined(LIBXML_STATIC) || defined(LIBXML_STATIC_FOR_DLL))
#if defined(_WIN32) && \
!defined(LIBXML_THREAD_ALLOC_ENABLED) && \
(!defined(LIBXML_STATIC) || defined(LIBXML_STATIC_FOR_DLL))
if (xmlFree == free)
atexit(xmlCleanupParser);
#endif
@ -14392,7 +14396,9 @@ xmlCleanupParser(void) {
xmlParserInitialized = 0;
}
#if defined(HAVE_ATTRIBUTE_DESTRUCTOR) && !defined(LIBXML_STATIC) && \
#if defined(HAVE_ATTRIBUTE_DESTRUCTOR) && \
!defined(LIBXML_THREAD_ALLOC_ENABLED) && \
!defined(LIBXML_STATIC) && \
!defined(_WIN32)
static void
ATTRIBUTE_DESTRUCTOR

@ -4384,6 +4384,10 @@ thread_specific_data(void *private_data)
const char *filename = params->filename;
int okay = 1;
#ifdef LIBXML_THREAD_ALLOC_ENABLED
xmlMemSetup(xmlMemFree, xmlMemMalloc, xmlMemRealloc, xmlMemoryStrdup);
#endif
if (!strcmp(filename, "test/threads/invalid.xml")) {
xmlDoValidityCheckingDefaultValue = 0;
xmlGenericErrorContext = stdout;

@ -733,10 +733,11 @@ xmlXIncludeCopyNode(xmlXIncludeCtxtPtr ctxt, xmlNodePtr elem,
return(result);
while (cur->next == NULL) {
if (insertParent != NULL)
insertParent->last = insertLast;
cur = cur->parent;
if (cur == elem)
return(result);
insertParent->last = insertLast;
insertLast = insertParent;
insertParent = insertParent->parent;
}

Loading…
Cancel
Save