Skip to content
New issue

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

cmd/compile: panic while formatting syntax error message #20220

Closed
josharian opened this issue May 3, 2017 · 3 comments
Closed

cmd/compile: panic while formatting syntax error message #20220

josharian opened this issue May 3, 2017 · 3 comments
Milestone

Comments

@josharian
Copy link
Contributor

package p

func _(){
	*;:=
}	
$ go tool compile x.go 
x.go:4:3: syntax error: unexpected semicolon, expecting expression
x.go:4:4: non-name *%!v(PANIC=runtime error: invalid memory address or nil pointer dereference) on left side of :=
x.go:5:1: syntax error: unexpected }, expecting expression

Found with go-fuzz. Low priority in itself, but probably an easy fix and will enable further fuzzing.

@mdempsky @griesemer

@josharian josharian added this to the Go1.9 milestone May 3, 2017
@griesemer
Copy link
Contributor

Happy to take this unless you get to it before me.

@griesemer griesemer self-assigned this May 3, 2017
@josharian
Copy link
Contributor Author

I'm on it

@gopherbot
Copy link

CL https://golang.org/cl/42498 mentions this issue.

@golang golang locked and limited conversation to collaborators May 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants