Commit 13ba5b619a153f240320eb92b59158d657bdeb3a

Nick Wellnhofer 2020-06-28T13:16:46

Reset HTML parser input before reporting encoding error If charset conversion fails, reset the input pointers before reporting the error and bailing out. Otherwise, the input pointers are left in an invalid state which could lead to use-after-free and other memory errors. Similar to f9e7997e. Found by OSS-Fuzz.