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

Comments

Projects
None yet
3 participants
@josharian
Copy link
Contributor

commented May 3, 2017

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

This comment has been minimized.

Copy link
Contributor

commented May 3, 2017

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

@griesemer griesemer self-assigned this May 3, 2017

@josharian

This comment has been minimized.

Copy link
Contributor Author

commented May 3, 2017

I'm on it

@gopherbot

This comment has been minimized.

Copy link

commented May 3, 2017

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

@gopherbot gopherbot closed this in e41fb55 May 3, 2017

@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.
You can’t perform that action at this time.