Skip to content

image/jpeg: silent failure of jpeg decoding #10357

@mtaran-google

Description

@mtaran-google
  • What version of Go are you using (go version)? go1.4.2 darwin/amd64
  • What operating system and processor architecture are you using? Mac OS X 64-bit Intel
  • What did you do?
    • Open this jpeg with image/jpeg (it was produced by a scanner, and it renders fine in browsers, Preview, etc.)
  • What did you expect to see?
    • I expected Go to decode the image properly (i.e. white with black text).
  • What did you see instead?
    • It decoded the image as a black rectangle, with err == nil

Repro locally with this, though not on the playground.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions