Re: [Geeqie-devel] [PATCH 1/1] Properly open and work with large TIFF files.

2016-06-19 Thread Klaus Ethgen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi, Am So den 19. Jun 2016 um 16:32 schrieb Martin Pelikán: > 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 arithmeti

[Geeqie-devel] [PATCH 1/1] Properly open and work with large TIFF files.

2016-06-19 Thread Martin Pelikán
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, m