1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-28 23:14:57 +03:00

malloc-fail: Fix buffer overread in htmlParseScript

Found by OSS-Fuzz, see #344.
This commit is contained in:
Nick Wellnhofer
2023-03-17 12:27:07 +01:00
parent 1a91392c62
commit 8090e58564

View File

@@ -3151,8 +3151,8 @@ htmlParseScript(htmlParserCtxtPtr ctxt) {
} }
nbchar = 0; nbchar = 0;
} }
GROW;
NEXTL(l); NEXTL(l);
GROW;
cur = CUR_CHAR(l); cur = CUR_CHAR(l);
} }