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: Nick Wellnhofer <wellnhofer@aevum.de>
Date: Thu, 28 Jul 2022 21:35:17 +0200
Subject: Also reset nsNr in htmlCtxtReset
origin: https://gitlab.gnome.org/GNOME/libxml2/-/commit/a82ea25fc83f563c574ddb863d6c17d9c5abdbd2
Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2022-2309
Bug-Debian: https://bugs.debian.org/1039991
---
HTMLparser.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/HTMLparser.c b/HTMLparser.c
index 9079fa8aa52d..1520663ba2af 100644
--- a/HTMLparser.c
+++ b/HTMLparser.c
@@ -6743,6 +6743,8 @@ htmlCtxtReset(htmlParserCtxtPtr ctxt)
ctxt->nameNr = 0;
ctxt->name = NULL;
+ ctxt->nsNr = 0;
+
DICT_FREE(ctxt->version);
ctxt->version = NULL;
DICT_FREE(ctxt->encoding);
--
2.40.1
|