Skip to content

image/gif: decoding of some GIFs fails with error gif: invalid pixel value yet they open alright. #15059

@odeke-em

Description

@odeke-em

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?
    go version devel +ea306ae Fri Apr 1 04:13:44 2016 +0000 darwin/amd64
  2. What operating system and processor architecture are you using (go env)?
    GOARCH="amd64"
    GOBIN="/Users/emmanuelodeke/go/bin"
    GOEXE=""
    GOHOSTARCH="amd64"
    GOHOSTOS="darwin"
    GOOS="darwin"
    GOPATH="/Users/emmanuelodeke/go"
    GORACE=""
    GOROOT="/Users/emmanuelodeke/go/src/go.googlesource.com/go"
    GOTOOLDIR="/Users/emmanuelodeke/go/src/go.googlesource.com/go/pkg/tool/darwin_amd64"
    CC="clang"
    GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -gno-record-gcc-switches -fno-common"
    CXX="clang++"
    CGO_ENABLED="1"
  3. What did you do?
    If possible, provide a recipe for reproducing the error.
    A complete runnable program is good http://play.golang.org/p/_8PzZ6RffI.
    A link on play.golang.org is best.
    Tried to decode a gif https://brobible.files.wordpress.com/2016/03/joker1.gif but it failed with error gif: invalid pixel value.
    Complete runnable program here http://play.golang.org/p/_8PzZ6RffI
  4. What did you expect to see?
    Successful GIF decoding
  5. What did you see instead?
    error gif: invalid pixel value

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions