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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user