We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go version
go version go1.6.2 linux/amd64
What operating system and processor architecture are you using (go env)?
go env
GOARCH="amd64" GOOS="linux"
What did you do?
Passed random binary data into Collator.Key():
Collator.Key()
package main import ( "golang.org/x/text/collate" "golang.org/x/text/language" ) func main() { input := []byte("\x99\xeb\x9d\x18\xa4G\x84\x04]\x87\xf3\xc6|\xf2'F") collator := collate.New(language.English, collate.Loose) collator.Key(new(collate.Buffer), input) }
What did you expect to see?
The program should terminate, or the docs for x/text/collate should warn that inputs must be validated before calling Collator.Key().
What did you see instead?
The call to Collator.Key() never returns. The program eats all available memory. My workstation locks up. My interns laugh at me.
The text was updated successfully, but these errors were encountered:
golang/text@8552585
No branches or pull requests
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?What did you do?
Passed random binary data into
Collator.Key()
:What did you expect to see?
The program should terminate, or the docs for x/text/collate should warn that inputs must be validated before calling
Collator.Key()
.What did you see instead?
The call to
Collator.Key()
never returns. The program eats all available memory. My workstation locks up. My interns laugh at me.The text was updated successfully, but these errors were encountered: