Skip to content

Commit 4cef851

Browse files
fix net/html oom
1 parent f35fec9 commit 4cef851

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: html/parse.go

+3
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,9 @@ func afterHeadIM(p *parser) bool {
836836
case DoctypeToken:
837837
// Ignore the token.
838838
return true
839+
case ErrorToken:
840+
// Stop parsing.
841+
return true
839842
}
840843

841844
p.parseImpliedToken(StartTagToken, a.Body, a.Body.String())

0 commit comments

Comments
 (0)