You need to log in before you can comment on or make changes to this bug.
As a corrolary to LibTIFF Bug 2384, the code of _tiffSizeProc also seems to be incorrect, although I have not yet seen an instance where the problem occurs in our software. The problem is that the member st_size of a struct stat under Windows is 32 bits. Under Windows, the correct data structure to support files larger than 4 GiB would be struct _stati64 and the correct function to call would be _fstati64. The minimal patch would be to insert the following code into tif_unix.c, e.g., after the line #include "tiffiop.h": #if defined(_WIN32) #define fstat _fstati64 #define stat _stati64 #endif However, the redefinition of stat is actually a gross hack. It would be better to have a typedef for a type that is struct _stati64 under Windows and struct stat on other systems in an appropriate header file.
Bugzilla is no longer used for tracking libtiff issues. Remaining open tickets, such as this one, have been migrated to the libtiff GitLab instance at https://gitlab.com/libtiff/libtiff/issues . The migrated tickets have their summary prefixed with [BZ#XXXX] where XXXX is the initial Bugzilla issue number.