• Benny Siegert's avatar
    image/tiff: Do not panic when RowsPerStrip is missing. · a65f4ccb
    Benny Siegert authored
    The RowsPerStrip tag is mandatory according to the spec. However,
    Mac OS sometimes (?) omits it. I managed to create such an image
    by applying "tiffutil -none" on a compressed image.
    
    If RowsPerStrip is 0, there was a division by zero in the decoder.
    Assume that the image is a single strip in this case.
    
    R=nigeltao, bradfitz
    CC=golang-dev
    https://golang.org/cl/4815061
    a65f4ccb
Name
Last commit
Last update
..
bmp Loading commit data...
draw Loading commit data...
gif Loading commit data...
jpeg Loading commit data...
png Loading commit data...
testdata Loading commit data...
tiff Loading commit data...
ycbcr Loading commit data...
Makefile Loading commit data...
color.go Loading commit data...
decode_test.go Loading commit data...
format.go Loading commit data...
geom.go Loading commit data...
image.go Loading commit data...
image_test.go Loading commit data...
names.go Loading commit data...