Closed
Description
The following program prints EOF, which looks weird (whole image decoded?). Jpeg and png print UnexpectedEOF in this case. Gif should also return UnexpectedEOF.
package main
import (
"bytes"
"fmt"
"image/gif"
)
func main() {
_, err := gif.Decode(bytes.NewReader([]byte{}))
fmt.Printf("err: %v\n", err)
}
go version devel +3cab476 Sun Jun 21 03:11:01 2015 +0000 linux/amd64