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 go.net/html tokenizer does not limit buffering. For example, the following program
will crash OOM:
pr, pw := io.Pipe()
z := NewTokenizer(pr)
go z.Next()
pw.Write([]byte("<"))
b := []byte(strings.Repeat("t", 1024*1024))
for {
pw.Write(b)
}
To improve robustness, the tokenizer should limit buffering.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: