File: Also-reset-nsNr-in-htmlCtxtReset.patch

package info (click to toggle)
libxml2 2.9.14%2Bdfsg-1.3~deb12u5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 36,924 kB
  • sloc: ansic: 198,642; xml: 23,237; python: 21,469; sh: 5,062; makefile: 2,109; javascript: 639; php: 365; perl: 67
file content (27 lines) | stat: -rw-r--r-- 757 bytes parent folder | download | duplicates (4)
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