download.lst                                                      |    4 
 external/libxml2/9de92ed78d8495527c5d7a4d0cc76c1f83768195.patch.1 |   64 
----------
 external/libxml2/UnpackedTarball_libxml2.mk                       |    1 
 3 files changed, 2 insertions(+), 67 deletions(-)

New commits:
commit e1bfb554060b7d2d9b4079a1efb1341b726522d1
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Tue Sep 9 17:03:13 2025 +0200
Commit:     Adolfo Jayme Barrientos <fit...@ubuntu.com>
CommitDate: Wed Sep 10 19:03:23 2025 +0200

    libxml2: upgrade to 2.14.6
    
    9de92ed78d8495527c5d7a4d0cc76c1f83768195.patch.1 has been fixed upstream
    
    Downloaded from 
https://download.gnome.org/sources/libxml2/2.14/libxml2-2.14.6.tar.xz
    
    Change-Id: Ibfd34613bc74644830b2e45c32c16462e7c7bd32
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190720
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>
    (cherry picked from commit 5e9caecd24636664d3de0a1eff06df540aa70fc4)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190723
    Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com>

diff --git a/download.lst b/download.lst
index 4f77fa7ca3b5..b538fae6b33e 100644
--- a/download.lst
+++ b/download.lst
@@ -459,8 +459,8 @@ XMLSEC_TARBALL := xmlsec1-1.3.6.tar.gz
 # three static lines
 # so that git cherry-pick
 # will not run into conflicts
-LIBXML_SHA256SUM := 
03d006f3537616833c16c53addcdc32a0eb20e55443cba4038307e3fa7d8d44b
-LIBXML_VERSION_MICRO := 5
+LIBXML_SHA256SUM := 
7ce458a0affeb83f0b55f1f4f9e0e55735dbfc1a9de124ee86fb4a66b597203a
+LIBXML_VERSION_MICRO := 6
 LIBXML_TARBALL := libxml2-2.14.$(LIBXML_VERSION_MICRO).tar.xz
 # three static lines
 # so that git cherry-pick
diff --git a/external/libxml2/9de92ed78d8495527c5d7a4d0cc76c1f83768195.patch.1 
b/external/libxml2/9de92ed78d8495527c5d7a4d0cc76c1f83768195.patch.1
deleted file mode 100644
index 5984d25e957d..000000000000
--- a/external/libxml2/9de92ed78d8495527c5d7a4d0cc76c1f83768195.patch.1
+++ /dev/null
@@ -1,64 +0,0 @@
-From 9de92ed78d8495527c5d7a4d0cc76c1f83768195 Mon Sep 17 00:00:00 2001
-From: Nick Wellnhofer <wellnho...@aevum.de>
-Date: Tue, 5 Aug 2025 22:26:27 +0200
-Subject: [PATCH] tree: Guard against atype corruption
-
-Always remove ids if `id` member is set.
-
-Untested, but this should fix CVE-2025-7425 reported against libxslt:
-
-https://gitlab.gnome.org/GNOME/libxslt/-/issues/140
----
- tree.c  | 8 ++++----
- valid.c | 2 +-
- 2 files changed, 5 insertions(+), 5 deletions(-)
-
-diff --git a/tree.c b/tree.c
-index 2e8df00b8..ddb8bdb3b 100644
---- a/tree.c
-+++ b/tree.c
-@@ -1892,8 +1892,8 @@ xmlFreeProp(xmlAttrPtr cur) {
-       xmlDeregisterNodeDefaultValue((xmlNodePtr)cur);
- 
-     /* Check for ID removal -> leading to invalid references ! */
--    if ((cur->doc != NULL) && (cur->atype == XML_ATTRIBUTE_ID)) {
--          xmlRemoveID(cur->doc, cur);
-+    if (cur->doc != NULL && cur->id != NULL) {
-+        xmlRemoveID(cur->doc, cur);
-     }
-     if (cur->children != NULL) xmlFreeNodeList(cur->children);
-     DICT_FREE(cur->name)
-@@ -2736,7 +2736,7 @@ xmlNodeSetDoc(xmlNodePtr node, xmlDocPtr doc) {
-              * TODO: ID attributes should also be added to the new
-              * document, but it's not clear how to handle clashes.
-              */
--            if (attr->atype == XML_ATTRIBUTE_ID)
-+            if (attr->id != NULL)
-                 xmlRemoveID(oldDoc, attr);
- 
-             break;
-@@ -6919,7 +6919,7 @@ xmlSetNsProp(xmlNodePtr node, xmlNsPtr ns, const xmlChar 
*name,
-                 return(NULL);
-         }
- 
--      if (prop->atype == XML_ATTRIBUTE_ID) {
-+      if (prop->id != NULL) {
-           xmlRemoveID(node->doc, prop);
-           prop->atype = XML_ATTRIBUTE_ID;
-       }
-diff --git a/valid.c b/valid.c
-index 34b6757cb..e625f0c1b 100644
---- a/valid.c
-+++ b/valid.c
-@@ -4296,7 +4296,7 @@ xmlValidateOneAttribute(xmlValidCtxtPtr ctxt, xmlDocPtr 
doc,
-              attr->name, elem->name, NULL);
-       return(0);
-     }
--    if (attr->atype == XML_ATTRIBUTE_ID)
-+    if (attr->id != NULL)
-         xmlRemoveID(doc, attr);
-     attr->atype = attrDecl->atype;
- 
--- 
-GitLab
-
diff --git a/external/libxml2/UnpackedTarball_libxml2.mk 
b/external/libxml2/UnpackedTarball_libxml2.mk
index 593556dbc532..223577f7c037 100644
--- a/external/libxml2/UnpackedTarball_libxml2.mk
+++ b/external/libxml2/UnpackedTarball_libxml2.mk
@@ -23,7 +23,6 @@ $(eval $(call gb_UnpackedTarball_add_patches,libxml2,\
        $(if $(gb_Module_CURRENTMODULE_SYMBOLS_ENABLED), \
                external/libxml2/libxml2-icu-sym.patch.0, \
                external/libxml2/libxml2-icu.patch.0) \
-       external/libxml2/9de92ed78d8495527c5d7a4d0cc76c1f83768195.patch.1 \
 ))
 
 $(eval $(call 
gb_UnpackedTarball_add_file,libxml2,xml2-config.in,external/libxml2/xml2-config.in))

Reply via email to