wok-current view libxml2/stuff/CVE-2024-34459.patch @ rev 25792

Fix openbox menu, label keymap on lxpanel and add miss it translation for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Tue Oct 07 05:55:24 2025 +0000 (2 weeks ago)
parents
children
line source
1 From 8ddc7f13337c9fe7c6b6e616f404b0fffb8a5145 Mon Sep 17 00:00:00 2001
2 From: Nick Wellnhofer <wellnhofer@aevum.de>
3 Date: Wed, 8 May 2024 11:49:31 +0200
4 Subject: [PATCH] [CVE-2024-34459] Fix buffer overread with `xmllint --htmlout`
6 Add a missing bounds check.
7 ---
8 xmllint.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
11 diff --git a/xmllint.c b/xmllint.c
12 index 0e433b721..62f6b0273 100644
13 --- a/xmllint.c
14 +++ b/xmllint.c
15 @@ -559,7 +559,7 @@ xmlHTMLPrintFileContext(xmlParserInputPtr input) {
16 len = strlen(buffer);
17 snprintf(&buffer[len], sizeof(buffer) - len, "\n");
18 cur = input->cur;
19 - while ((*cur == '\n') || (*cur == '\r'))
20 + while ((cur > base) && ((*cur == '\n') || (*cur == '\r')))
21 cur--;
22 n = 0;
23 while ((cur != base) && (n++ < 80)) {
24 --
25 GitLab