• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1From 8090e5856465c0b8e26e2a080f4b498f37fa83ab Mon Sep 17 00:00:00 2001
2From: Nick Wellnhofer <wellnhofer@aevum.de>
3Date: Fri, 17 Mar 2023 12:27:07 +0100
4Subject: [PATCH] malloc-fail: Fix buffer overread in htmlParseScript
5
6Found by OSS-Fuzz, see #344.
7
8Reference:https://github.com/GNOME/libxml2/commit/8090e5856465c0b8e26e2a080f4b498f37fa83ab
9Conflict:NA
10
11---
12 HTMLparser.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/HTMLparser.c b/HTMLparser.c
16index 6c8f180..3682807 100644
17--- a/HTMLparser.c
18+++ b/HTMLparser.c
19@@ -3145,8 +3145,8 @@ htmlParseScript(htmlParserCtxtPtr ctxt) {
20 	    }
21 	    nbchar = 0;
22 	}
23-	GROW;
24 	NEXTL(l);
25+	GROW;
26 	cur = CUR_CHAR(l);
27     }
28
29--
302.27.0
31
32