mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
Deeply nested parenthesized expressions could cause a stack
overflow during parsing. This change introduces a depth limit
(maxStackDepth) tracked in Tree.stackDepth to prevent this.
Additionally, this commit clarifies the security model in
the package documentation, noting that template authors
are trusted as text/template does not auto-escape.
Fixes #71201
Change-Id: Iab2c2ea6c193ceb44bb2bc7554f3fccf99a9542f
GitHub-Last-Rev:
|
||
|---|---|---|
| .. | ||
| scanner | ||
| tabwriter | ||
| template | ||