commit | 8e219b154e9b938af84c4b009aefa692020103f9 | [log] [tgz] |
---|---|---|
author | Nick Wellnhofer <wellnhofer@aevum.de> | Sun Jul 12 21:43:44 2020 +0200 |
committer | Nick Wellnhofer <wellnhofer@aevum.de> | Wed Jul 15 16:44:36 2020 +0200 |
tree | d96493571b1a447a26bfc63340f716fd96a7215e | |
parent | e050062ca9f921c6da8e62ff7a42925ba8f08268 [diff] |
Fix HTML push parser lookahead The parsing rules when looking for terminating chars or sequences in the push parser differed from the actual parsing code. This could result in the lookahead to overshoot and data being rescanned, potentially leading to quadratic runtime. Comments must never be handled during lookahead. Attribute values must only be skipped for start tags and doctype declarations, not for end tags, comments, PIs and script content.