commit | 477c7f6affcb665305b333f92ce0a782325b4156 | [log] [tgz] |
---|---|---|
author | Nick Wellnhofer <wellnhofer@aevum.de> | Sun Jun 28 15:54:23 2020 +0200 |
committer | Nick Wellnhofer <wellnhofer@aevum.de> | Mon Jul 06 12:17:20 2020 +0200 |
tree | 174e42f2900b8072be4d25666a23a11de03875d0 | |
parent | f8329fdc234a43b858271acc75ea70881e35fcae [diff] |
Fix quadratic runtime in HTML parser Commit eeb99329 removed an important optimization avoiding quadratic runtime when repeatedly scanning the input buffer for terminating characters in the HTML push parser. The related bug is https://bugzilla.gnome.org/show_bug.cgi?id=444994 Make sure that ctxt->checkIndex is always written and store additional parser state in ctxt->inSubset which is unused in the HTML parser. Found by OSS-Fuzz.