Opened 18 years ago

Last modified 18 years ago

#1164 closed defect (fixed)

gdaltindex crashes with FP-exception on Tru64 in gt_wkt_srs.cpp + FIX

Reported by: tom.vijlbrief@… Owned by: warmerdam
Priority: high Milestone:
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords:
Cc:

Description

When running gdaltindex on GeoTIFF files on Tru64 Unix,
gdaltindex crashes (Floating Point exception) due to an uninitialized float 
array (adfParam[10])
on the stack in gdal-1.3.1/frmts/gtiff/gt_wkt_srs.cpp around line 340

====FIX:=========
        double          adfParm[10];
        int             i;

        for( i = 0; i < MIN(10,psDefn->nParms); i++ )
            adfParm[i] = psDefn->ProjParm[i];
        // tomv: init remaining parameters:
        for( ; i < 10; i++ )
            adfParm[i] = 0.0;

Change History (1)

comment:1 by warmerdam, 18 years ago

Patch applied, and it will appear in GDAL 1.3.2 final.

Thanks
Note: See TracTickets for help on using tickets.