Decoding the attached image will return "bad RST marker" using go version devel +bd45bce Wed Jul 8 01:20:02 2015 +0000 darwin/amd64 Decoding with 1.4.2 works just fine. And I haven't seen any other jpeg decoder fall over on this one. 