]> Cypherpunks repositories - gostls13.git/commit
image/tiff: Reject images with SampleFormat != 1.
authorBenny Siegert <bsiegert@gmail.com>
Fri, 13 May 2011 02:34:48 +0000 (22:34 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 13 May 2011 02:34:48 +0000 (22:34 -0400)
commit14c59abd76a7f2bc11fcbd9009d49e9ffcd33e8e
treef20ccaf514bb6def1e6bb6475ccb547e93545da4
parentf4e5f364c7f3107f707c3547a72e546167b9410c
image/tiff: Reject images with SampleFormat != 1.

The TIFF spec says that a baseline TIFF reader must gracefully terminate
when the image has a SampleFormat tag which it does not support.
For baseline compatibility, only SampleFormat=1 (the default) is needed.
Images with other sample formats (e.g. floating-point color values)
are very rare in practice.

R=nigeltao
CC=golang-dev
https://golang.org/cl/4515073
src/pkg/image/tiff/consts.go
src/pkg/image/tiff/reader.go