• 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
..
testdata Loading commit data...
Makefile Loading commit data...
buffer.go Loading commit data...
buffer_test.go Loading commit data...
consts.go Loading commit data...
reader.go Loading commit data...
reader_test.go Loading commit data...