text/template: Slice bound out of range error in text/template #53218
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I created an illegal text to parse as template.
A link on go.dev is : Poc.go
What did you expect to see?
It parses failed and return (nil, error)
What did you see instead?
It trigger a slice out of range fatal error, like:
The text was updated successfully, but these errors were encountered: