diff options
Diffstat (limited to 'meta/recipes-core/libxml/libxml2/CVE-2025-27113.patch')
| -rw-r--r-- | meta/recipes-core/libxml/libxml2/CVE-2025-27113.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-core/libxml/libxml2/CVE-2025-27113.patch b/meta/recipes-core/libxml/libxml2/CVE-2025-27113.patch new file mode 100644 index 0000000000..92713375eb --- /dev/null +++ b/meta/recipes-core/libxml/libxml2/CVE-2025-27113.patch | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | From 503f788e84f1c1f1d769c2c7258d77faee94b5a3 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Nick Wellnhofer <wellnhofer@aevum.de> | ||
| 3 | Date: Thu, 13 Feb 2025 16:48:53 +0100 | ||
| 4 | Subject: [PATCH] pattern: Fix compilation of explicit child axis | ||
| 5 | |||
| 6 | The child axis is the default axis and should generate XML_OP_ELEM like | ||
| 7 | the case without an axis. | ||
| 8 | |||
| 9 | CVE: CVE-2025-27113 | ||
| 10 | Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libxml2/-/commit/503f788e84f1c1f1d769c2c7258d77faee94b5a3] | ||
| 11 | Signed-off-by: Peter Marko <peter.marko@siemens.com> | ||
| 12 | --- | ||
| 13 | pattern.c | 4 ++-- | ||
| 14 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/pattern.c b/pattern.c | ||
| 17 | index 27e96946..3182794e 100644 | ||
| 18 | --- a/pattern.c | ||
| 19 | +++ b/pattern.c | ||
| 20 | @@ -1178,10 +1178,10 @@ xmlCompileStepPattern(xmlPatParserContextPtr ctxt) { | ||
| 21 | goto error; | ||
| 22 | } | ||
| 23 | } else { | ||
| 24 | - PUSH(XML_OP_CHILD, token, URL); | ||
| 25 | + PUSH(XML_OP_ELEM, token, URL); | ||
| 26 | } | ||
| 27 | } else | ||
| 28 | - PUSH(XML_OP_CHILD, name, NULL); | ||
| 29 | + PUSH(XML_OP_ELEM, name, NULL); | ||
| 30 | return; | ||
| 31 | } else if (xmlStrEqual(name, (const xmlChar *) "attribute")) { | ||
| 32 | XML_PAT_FREE_STRING(ctxt, name) | ||
