Changeset 14472 for branches

Show
Ignore:
Timestamp:
05/15/08 14:28:39 (2 months ago)
Author:
rouault
Message:

Fix buffer overflow when calling GTIFDirectoryInfo in GTIFGetOGISDefn (#2372)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.5/gdal/frmts/gtiff/gt_wkt_srs.cpp

    r13642 r14472  
    226226        char    szPCSName[300]; 
    227227        int     nKeyCount = 0; 
    228         int     nVersion
     228        int     anVersion[3]
    229229 
    230230        if( hGTIF != NULL ) 
    231             GTIFDirectoryInfo( hGTIF, &nVersion, &nKeyCount ); 
     231            GTIFDirectoryInfo( hGTIF, anVersion, &nKeyCount ); 
    232232 
    233233        if( nKeyCount > 0 ) // Use LOCAL_CS if we have any geokeys at all.