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: index out of range #11759

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

cmd/asm: index out of range #11759

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

Comments

@dvyukov
Copy link
Member

dvyukov commented Jul 17, 2015

cmd/asm crashes on the following program:

FUNCDATA
panic: runtime error: index out of range

goroutine 1 [running]:
cmd/asm/internal/asm.(*Parser).asmFuncData(0xc820043e80, 0xc820010720, 0x8, 0xc820043b40, 0x0, 0x3)
    src/cmd/asm/internal/asm/asm.go:289 +0x2cd
cmd/asm/internal/asm.(*Parser).pseudo(0xc820043e80, 0x7, 0xc820010720, 0x8, 0xc820043b40, 0x0, 0x3)
    src/cmd/asm/internal/asm/parse.go:220 +0xae
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:

FUNCDATA(SB 

(there is a space at the end of line)

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

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