You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following program causes the html parser to go into an infinite loop.
4766925f012c+ tip
package main
import (
"fmt"
"html"
"strings"
)
var body = `
<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
`
func main() {
r := strings.NewReader(body)
_, err := html.Parse(r)
if err != nil {
fmt.Println("parse: ", err)
return
}
fmt.Printf("parsed\n")
}