x/net/html: html.Parse() panic caused by malformed data #27016
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What did you do?
What did you expect to see?
No panic exit
What did you see instead?
Analysis
There are many reasons for panic, but the main reason is:
golang.org/x/net/html.inTemplateIM()
does not handle some special TokenTypes,meanwhile
golang.org/x/net/html.(*parser)popUntil()
does handle these special TokenTypes, thus causing panic.Other test cases that cause the same problem:
System details
The text was updated successfully, but these errors were encountered: