diff options
| author | Peter Marko <peter.marko@siemens.com> | 2025-02-19 21:17:14 +0100 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-02-28 06:51:35 -0800 |
| commit | 533c0f62e144b25f269bd3671d3a5d2c6c30da3e (patch) | |
| tree | 020471a7a4072b049545a12e8a23ee8019cde8d8 /meta/recipes-core | |
| parent | a2f2b93129be86d67663ba4e40ffba16a7c406c5 (diff) | |
| download | poky-533c0f62e144b25f269bd3671d3a5d2c6c30da3e.tar.gz | |
libxml2: fix compilation of explicit child axis in pattern
This was reported as sucurity fix in
https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.12.10
https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.13.6
(From OE-Core rev: 0dc99e25c16a1e74aa80ca20132609990bb9dff7)
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-core')
| -rw-r--r-- | meta/recipes-core/libxml/libxml2/0001-pattern-Fix-compilation-of-explicit-child-axis.patch | 31 | ||||
| -rw-r--r-- | meta/recipes-core/libxml/libxml2_2.9.14.bb | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-core/libxml/libxml2/0001-pattern-Fix-compilation-of-explicit-child-axis.patch b/meta/recipes-core/libxml/libxml2/0001-pattern-Fix-compilation-of-explicit-child-axis.patch new file mode 100644 index 0000000000..932c0ec422 --- /dev/null +++ b/meta/recipes-core/libxml/libxml2/0001-pattern-Fix-compilation-of-explicit-child-axis.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 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 | Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libxml2/-/commit/503f788e84f1c1f1d769c2c7258d77faee94b5a3] | ||
| 10 | Signed-off-by: Peter Marko <peter.marko@siemens.com> | ||
| 11 | --- | ||
| 12 | pattern.c | 4 ++-- | ||
| 13 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 14 | |||
| 15 | diff --git a/pattern.c b/pattern.c | ||
| 16 | index 27e96946..3182794e 100644 | ||
| 17 | --- a/pattern.c | ||
| 18 | +++ b/pattern.c | ||
| 19 | @@ -1178,10 +1178,10 @@ xmlCompileStepPattern(xmlPatParserContextPtr ctxt) { | ||
| 20 | goto error; | ||
| 21 | } | ||
| 22 | } else { | ||
| 23 | - PUSH(XML_OP_CHILD, token, URL); | ||
| 24 | + PUSH(XML_OP_ELEM, token, URL); | ||
| 25 | } | ||
| 26 | } else | ||
| 27 | - PUSH(XML_OP_CHILD, name, NULL); | ||
| 28 | + PUSH(XML_OP_ELEM, name, NULL); | ||
| 29 | return; | ||
| 30 | } else if (xmlStrEqual(name, (const xmlChar *) "attribute")) { | ||
| 31 | XML_PAT_FREE_STRING(ctxt, name) | ||
diff --git a/meta/recipes-core/libxml/libxml2_2.9.14.bb b/meta/recipes-core/libxml/libxml2_2.9.14.bb index ecaae0b436..912bcfd0f3 100644 --- a/meta/recipes-core/libxml/libxml2_2.9.14.bb +++ b/meta/recipes-core/libxml/libxml2_2.9.14.bb | |||
| @@ -34,6 +34,7 @@ SRC_URI += "http://www.w3.org/XML/Test/xmlts20080827.tar;subdir=${BP};name=testt | |||
| 34 | file://CVE-2024-25062.patch \ | 34 | file://CVE-2024-25062.patch \ |
| 35 | file://CVE-2024-34459.patch \ | 35 | file://CVE-2024-34459.patch \ |
| 36 | file://CVE-2022-49043.patch \ | 36 | file://CVE-2022-49043.patch \ |
| 37 | file://0001-pattern-Fix-compilation-of-explicit-child-axis.patch \ | ||
| 37 | " | 38 | " |
| 38 | 39 | ||
| 39 | SRC_URI[archive.sha256sum] = "60d74a257d1ccec0475e749cba2f21559e48139efba6ff28224357c7c798dfee" | 40 | SRC_URI[archive.sha256sum] = "60d74a257d1ccec0475e749cba2f21559e48139efba6ff28224357c7c798dfee" |
