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

image/jpeg: index out of range in progress JPEG processSOS #4975

Closed
bradfitz opened this issue Mar 4, 2013 · 1 comment
Closed

image/jpeg: index out of range in progress JPEG processSOS #4975

bradfitz opened this issue Mar 4, 2013 · 1 comment
Milestone

Comments

@bradfitz
Copy link
Contributor

@bradfitz bradfitz commented Mar 4, 2013

From App Engine mailing list:

package main

import (
    "net/http"
    "image/jpeg"
)

func main() {
    r, _ := http.Get("http://blog-assets.pinterest.com/img/post/2013012801.jpg";)
    jpeg.Decode(r.Body)
}


$ go run progress.go 
panic: runtime error: index out of range

goroutine 1 [running]:
image/jpeg.(*decoder).processSOS(0xc2000e8000, 0x6, 0xc2000f1d28, 0x2)
    /home/bradfitz/go/src/pkg/image/jpeg/scan.go:180 +0x19a3
image/jpeg.(*decoder).decode(0xc2000e8000, 0xc2000e7030, 0xc2000b7340, 0x408b00,
0x5b4750, ...)
    /home/bradfitz/go/src/pkg/image/jpeg/reader.go:296 +0x6f2
image/jpeg.Decode(0xc2000e7030, 0xc2000b7340, 0xc2000b7340, 0xc2000e7030, 0xc2000b7340,
...)
    /home/bradfitz/go/src/pkg/image/jpeg/reader.go:320 +0x4b
main.main()
    /home/bradfitz/progress.go:10 +0x76

goroutine 2 [syscall]:
@nigeltao
Copy link
Contributor

@nigeltao nigeltao commented Mar 5, 2013

Comment 1:

This issue was closed by revision 0d9bf27.

Status changed to Fixed.

Loading

@rsc rsc added this to the Go1.1 milestone Apr 14, 2015
@rsc rsc removed the go1.1maybe label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants