File: xml-do-not-terminate-on-an-unknown-XML-node-type-105.patch

package info (click to toggle)
lasso 2.8.1-1%2Bdeb12u1
  • links: PTS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 21,184 kB
  • sloc: ansic: 38,284; xml: 23,941; python: 5,148; sh: 4,726; makefile: 1,002; php: 495; perl: 117
file content (27 lines) | stat: -rw-r--r-- 828 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date: Thu, 15 May 2025 16:02:25 +0200
Subject: xml: do not terminate on an unknown XML node type (#105693)
Origin: https://git.entrouvert.org/lasso.git/commit/?id=37836a9cf14234ce720edb5c43f6ed0491f72cf6
Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2025-46705

---
 lasso/xml/xml.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lasso/xml/xml.c b/lasso/xml/xml.c
index ca8d72fa7b21..10732f3b89c2 100644
--- a/lasso/xml/xml.c
+++ b/lasso/xml/xml.c
@@ -1771,7 +1771,8 @@ lasso_node_impl_init_from_xml(LassoNode *node, xmlNode *xmlnode)
 				lasso_node_set_original_xmlnode(subnode, t);
 			}
 		} else {
-			g_assert_not_reached();
+			/* Anything else should not be there, abort. */
+			ERROR;
 		}
 	}
 #undef ERROR
-- 
2.51.0