golang-image/tiff
Jeff R. Allen 3157439762 image/tiff: do not allow zero bits per sample
Fuzzing detected a divide by zero in images with 0 bits
per sample. Instead of panicing, return an error. Do more
validation of bits per sample so that the package only
supports what we've actually tested.

Fixes golang/go#10711.

Change-Id: Ib41b5cd798c32b06429164c9bc471f5f321d88c5
Reviewed-on: https://go-review.googlesource.com/10943
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
Reviewed-by: Nigel Tao <nigeltao@golang.org>
2015-06-16 21:37:07 +00:00
..
lzw image: add import comments. 2014-12-09 22:43:18 +00:00
buffer_test.go go.image: initial code. 2012-01-31 11:32:50 +11:00
buffer.go go.image/tiff: optimize reading uncompressed files from a tiff.buffer. 2012-02-21 11:25:19 +11:00
compress.go go.image/tiff: remove unreachable code. 2014-06-30 11:43:54 +10:00
consts.go go.image/tiff: decoder support tiled tiff format 2013-09-06 20:07:58 +10:00
reader_test.go image/tiff: do not allow zero bits per sample 2015-06-16 21:37:07 +00:00
reader.go image/tiff: do not allow zero bits per sample 2015-06-16 21:37:07 +00:00
writer_test.go go.image/tiff: support 16bit RGB 2013-09-18 17:16:05 +10:00
writer.go go.image/tiff: encoder fix non LZW Predictor and Paletted SamplesPerPixel and non RGB ExtraSamples. 2013-09-22 11:21:53 +10:00