commit | 13ba5b619a153f240320eb92b59158d657bdeb3a | [log] [tgz] |
---|---|---|
author | Nick Wellnhofer <wellnhofer@aevum.de> | Sun Jun 28 13:16:46 2020 +0200 |
committer | Nick Wellnhofer <wellnhofer@aevum.de> | Sun Jun 28 13:21:50 2020 +0200 |
tree | c3ef74c53b04a6226aafc5392af567bb15963127 | |
parent | 1e7851b5aea4b2d8b9a6b6c02187fc4786f7a8b7 [diff] |
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.