Properly open and work with large TIFF files.
authorMartin Pelikán <mpel@google.com>
Sun, 19 Jun 2016 15:32:00 +0000 (01:32 +1000)
committerKlaus Ethgen <Klaus@Ethgen.de>
Sun, 19 Jun 2016 16:10:40 +0000 (17:10 +0100)
commit9a24b29d4e30fc7bfafc90195d3b0bce6615b04d
treee05ba4c6e15da49e1ca50ce5490d67b106c15976
parent0b044d1d685307e5755917e31d56a1a3104cd505
Properly open and work with large TIFF files.

Any file between 2^31 and 2^32 bytes shouldn't have its size displayed
as a negative number. Viewing more than 32768 pixels in each dimension
is only a matter of using 64bit arithmetic when calculating allocation
sizes and pointers into that memory. Multiplying is always suspicious.

While there, make the error messages clearer about what went wrong.

Signed-off-by: Klaus Ethgen <Klaus@Ethgen.de>
src/filedata.c
src/image_load_tiff.c
src/pixbuf-renderer.c