Navigation Menu

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

fmt: index out of range #10675

Closed
dvyukov opened this issue May 3, 2015 · 1 comment
Closed

fmt: index out of range #10675

dvyukov opened this issue May 3, 2015 · 1 comment
Milestone

Comments

@dvyukov
Copy link
Member

dvyukov commented May 3, 2015

The following program crashes with panic:

package main

import "fmt"

func main() {
    fmt.Sprintf("%.[]")
}
panic: runtime error: index out of range

goroutine 1 [running]:
fmt.(*pp).doPrintf(0x2082321a0, 0x104130, 0x4, 0x0, 0x0, 0x0)
    src/fmt/print.go:1134 +0x2251
fmt.Sprintf(0x104130, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0)
    src/fmt/print.go:207 +0x3b5
main.main()
    fmt.go:6 +0x44

go version devel +fbb4c74 Sat May 2 02:48:32 2015 +0000 darwin/amd64

@dvyukov dvyukov added this to the Go1.5 milestone May 3, 2015
@gopherbot
Copy link

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

@robpike robpike closed this as completed in 325642e May 5, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 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

3 participants