Masterminds / html5-php

An HTML5 parser and serializer for PHP.
http://masterminds.github.io/html5-php/
Other
1.59k stars 114 forks source link

Expose infinite loop #177

Closed tgalopin closed 4 years ago

tgalopin commented 4 years ago

I didn't investigate further but there seems to be an infinite loop during the parsing of this specific string. I reproduce in local with regularity.

It was detected by @Stoakes : https://github.com/tgalopin/html-sanitizer/issues/35

If you have any idea, go for it: I'm opening this PR only to expose the problem with an easy reproducer but I'm not sure I could be able to find the problem.