Skip to content

image/png: reading an image with binary transparency returns wrong error #4278

@gopherbot

Description

@gopherbot

by jsummers3456:

Using png.Decode to read a PNG image with binary transparency gives a bogus "chunk
out of order".

Test case: http://play.golang.org/p/d6ojL0cDZL

Expected output:
A "png: unsupported feature: ..." error (or no error).

Actual output:
"png: invalid format: chunk out of order"

Compiler: 6g
OS: Linux
Version: devel +8d919bfe75d3 Tue Oct 23 02:33:51 2012 +0800

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions