Changeset 12221

Show
Ignore:
Timestamp:
09/20/07 16:12:16 (1 year ago)
Author:
warmerdam
Message:

use toff_t for tiff offsets - critical bigtiff fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/gdal/frmts/gtiff/geotiff.cpp

    r12100 r12221  
    21092109        if( panOverviewList[i] > 0 ) 
    21102110        { 
    2111             uint32    nOverviewOffset; 
     2111            toff_t    nOverviewOffset; 
    21122112            int         nOXSize, nOYSize; 
    21132113 
     
    21832183                { 
    21842184                    papoOverviewBands[nNewOverviews++] = poOverview; 
     2185                    break; 
    21852186                } 
    21862187            } 
     
    27752776    const char *pszFilename = pszCompositeName + 10; 
    27762777    int        bAbsolute = FALSE; 
    2777     uint32     nOffset; 
     2778    toff_t     nOffset; 
    27782779     
    27792780    if( EQUALN(pszFilename,"off:",4) ) 
     
    34223423               && TIFFReadDirectory( hTIFF ) != 0 ) 
    34233424        { 
    3424             uint32    nThisDir = TIFFCurrentDirOffset(hTIFF); 
     3425            toff_t    nThisDir = TIFFCurrentDirOffset(hTIFF); 
    34253426            uint32      nSubType; 
    34263427 
  • trunk/gdal/frmts/gtiff/tif_overview.c

    r8706 r12221  
    8080/************************************************************************/ 
    8181 
    82 uint32 TIFF_WriteOverview( TIFF *hTIFF, int nXSize, int nYSize, 
     82toff_t TIFF_WriteOverview( TIFF *hTIFF, int nXSize, int nYSize, 
    8383                           int nBitsPerPixel, int nPlanarConfig, int nSamples,  
    8484                           int nBlockXSize, int nBlockYSize, 
     
    9191 
    9292{ 
    93     uint32    nBaseDirOffset; 
    94     uint32    nOffset; 
     93    toff_t    nBaseDirOffset; 
     94    toff_t    nOffset; 
    9595 
    9696    nBaseDirOffset = TIFFCurrentDirOffset( hTIFF ); 
     
    564564    { 
    565565        int     nOXSize, nOYSize, nOBlockXSize, nOBlockYSize; 
    566         uint32  nDirOffset; 
     566        toff_t  nDirOffset; 
    567567 
    568568        nOXSize = (nXSize + panOvList[i] - 1) / panOvList[i]; 
  • trunk/gdal/frmts/gtiff/tif_ovrcache.h

    r9511 r12221  
    6060    unsigned char *pabyRow2Blocks; 
    6161 
    62     int               nDirOffset; 
     62    toff_t    nDirOffset; 
    6363    TIFF        *hTIFF; 
    6464    int         bTiled; 
     
    8282                               int nSampleFormat, const char * pszResampling ); 
    8383 
    84 uint32 TIFF_WriteOverview( TIFF *, int, int, int, int, int, int, int, 
     84toff_t TIFF_WriteOverview( TIFF *, int, int, int, int, int, int, int, 
    8585                           int, int, int, int, unsigned short *, 
    8686                           unsigned short *, unsigned short *, int );