Repository navigation
🐛 fix(fuzz): resolve four OSS-Fuzz reports - #1675
Conversation
CSS translation can produce XPath beyond the parser depth cap. Raise the typed depth error used by evaluation so the selector oracle can reject these inputs.
Merging this PR will improve performance by 25.15%2 warnings
Performance Changes
Tip Curious why performance improved? Comment Comparing Footnotes
|
Four recent OSS-Fuzz reports found an out-of-bounds write in phone recognition and failures in XML serialization, CLI text output, and selector translation. 🛡️ After this PR, the phone recognizer stops adding chunks at its capacity, XML comments keep their boundaries after invalid characters are removed, and the CLI writes text files without converting line endings.
Deeply nested XPath expressions now raise
XPathDepthError, aValueErrorsubclass, when the parser's depth cap is hit. The selector check treats that error as out of scope, so the fuzzer does not report it as a translation difference.