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/asm: slice bounds out of range #11760

Closed
dvyukov opened this issue Jul 17, 2015 · 3 comments
Closed

cmd/asm: slice bounds out of range #11760

dvyukov opened this issue Jul 17, 2015 · 3 comments
Milestone

Comments

@dvyukov
Copy link
Member

dvyukov commented Jul 17, 2015

DATA 0
panic: runtime error: slice bounds out of range

goroutine 1 [running]:
cmd/asm/internal/asm.(*Parser).asmData(0xc820043e80, 0xc820010710, 0x4, 0xc820043b40, 0x1, 0x3)
    src/cmd/asm/internal/asm/asm.go:183 +0x71b
cmd/asm/internal/asm.(*Parser).pseudo(0xc820043e80, 0x3, 0xc820010710, 0x4, 0xc820043b40, 0x1, 0x3)
    src/cmd/asm/internal/asm/parse.go:214 +0x81
cmd/asm/internal/asm.(*Parser).line(0xc820043e80, 0xc82000a540)
    src/cmd/asm/internal/asm/parse.go:180 +0x9ac
cmd/asm/internal/asm.(*Parser).Parse(0xc820043e80, 0xc82000a540, 0xc820014750)
    src/cmd/asm/internal/asm/parse.go:81 +0x21
main.main()
    src/cmd/asm/main.go:59 +0xb39

go version devel +9b04852 Sat Jul 11 00:08:50 2015 +0000 linux/amd64

@dvyukov
Copy link
Member Author

dvyukov commented Jul 17, 2015

Similar one, but leads to nil deref:

DATA(0

@dvyukov
Copy link
Member Author

dvyukov commented Jul 17, 2015

Another one:

DATA(0)

@ianlancetaylor ianlancetaylor added this to the Go1.6 milestone Jul 17, 2015
@gopherbot
Copy link
Contributor

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

@robpike robpike closed this as completed in df37c4b Sep 2, 2015
@golang golang locked and limited conversation to collaborators Sep 4, 2016
@rsc rsc unassigned robpike Jun 23, 2022
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

4 participants