commit | 94c2e415a9bc1b9e7b7210a9c73817106bb1f175 | [log] [tgz] |
---|---|---|
author | Nick Wellnhofer <wellnhofer@aevum.de> | Sun Dec 06 16:38:00 2020 +0100 |
committer | Nick Wellnhofer <wellnhofer@aevum.de> | Sun Dec 06 16:44:11 2020 +0100 |
tree | 08be3620723826ffd831a00efa0b9bc02a84f668 | |
parent | 1c4f9a6db5c962b8a6978b0046d15b98ff2ebf0f [diff] |
Fix quadratic runtime in HTML push parser with null bytes Null bytes in the input stream do not necessarily signal an EOF condition. Check the stream pointers for EOF to avoid quadratic rescanning of input data. Note that the CUR_CHAR macro used in functions like htmlParseCharData calls htmlCurrentChar which translates null bytes. Found by OSS-Fuzz.