x/text: Case.Title panics on certain inputs. #55032
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Cannot confirm yet - we've only seen this in production systems with private user configuration.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
The Prometheus Alertmanager uses x/text/case's title casing when examining headers in email notifier configurations. When some strings are fed to x/case it panics.
Panics have happened with private customer configuration that we are unable to access. We're still trying to find reproducable strings using the fuzzer, but nothing yet.
What did you expect to see?
An error returned for strings that cannot be title-cased.
What did you see instead?
The program panics with this stack trace:
the panic itself happens inside x/text/transform:
There is additional context on this issue for the Prometheus Alertmanager
The text was updated successfully, but these errors were encountered: