fixed a potential buffer overrun error introduced on last commit to
* HTMLparser.c: fixed a potential buffer overrun error introduced
on last commit to htmlParseScript() c.f. #310229
Daniel
diff --git a/ChangeLog b/ChangeLog
index 27c400f..e6cbed3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Jul 14 10:56:42 CEST 2005 Daniel Veillard <daniel@veillard.com>
+
+ * HTMLparser.c: fixed a potential buffer overrun error introduced
+ on last commit to htmlParseScript() c.f. #310229
+
Thu Jul 14 23:48:17 PDT 2005 William Brack <wbrack@mmm.com.hk>
* xpath.c: Changed the behaviour of xmlXPathEqualNodeSetFloat to
diff --git a/HTMLparser.c b/HTMLparser.c
index d724620..a54fc8d 100644
--- a/HTMLparser.c
+++ b/HTMLparser.c
@@ -2627,7 +2627,7 @@
*/
static void
htmlParseScript(htmlParserCtxtPtr ctxt) {
- xmlChar buf[HTML_PARSER_BIG_BUFFER_SIZE + 1];
+ xmlChar buf[HTML_PARSER_BIG_BUFFER_SIZE + 5];
int nbchar = 0;
int cur,l;