Don't allocate lots of memory when reading TIFFs with infinite rows per strip.
authorAndreas Stührk <andy@hammerhartes.de>
Wed, 8 Oct 2014 21:31:30 +0000 (23:31 +0200)
committerDikay900 <dark900@xyz.de>
Sun, 24 May 2015 12:06:20 +0000 (14:06 +0200)
commitc9481b0fd7b7ffa01024ed1e54d80483231cb83d
tree0256768a89183d9e0b023567d5388ecb1fabee37
parent8138e26163e39c327c3e645ad1cccc896fa10dae
Don't allocate lots of memory when reading TIFFs with infinite rows per strip.

Some TIFF images consist of only one strip. The magic value 2**32-1 for the
"rows per strip" tag reflects that fact, effectively meaning "infinite".

Conflicts:
modules/highgui/src/grfmt_tiff.cpp
modules/highgui/test/test_grfmt.cpp

fix whitespace

fix compile error
modules/imgcodecs/src/grfmt_tiff.cpp
modules/imgcodecs/test/test_grfmt.cpp