Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2277 closed defect (fixed)

RMF driver can crash / corrupt stack when importing projection from Panorama

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 1.5.2
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: rmf panorama
Cc: dron

Description

The padfPrjParams array allocated on stack at line 1238 of rmfdataset.cpp is only of size 6 whereas it should be size 7.

This probably explains the funny false_northing value reported by rmf_7 test in szekerest-vc80-full buildbot.

This affects svn-trunk and branches/1.5. I'll patch both.

old =  PROJCS["unnamed",
    GEOGCS["WGS 84",
        DATUM["WGS_1984",
            SPHEROID["WGS 84",6378137,298.257223563,
                AUTHORITY["EPSG","7030"]],
            TOWGS84[0,0,0,0,0,0,0],
            AUTHORITY["EPSG","6326"]],
        PRIMEM["Greenwich",0,
            AUTHORITY["EPSG","8901"]],
        UNIT["degree",0.0174532925199433,
            AUTHORITY["EPSG","9108"]],
        AXIS["Lat",NORTH],
        AXIS["Long",EAST],
        AUTHORITY["EPSG","4326"]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",0],
    PARAMETER["scale_factor",1],
    PARAMETER["false_easting",500000],
    PARAMETER["false_northing",2.120373015893275e-303],
    UNIT["Meter",1]]
new =  PROJCS["unnamed",
    GEOGCS["WGS 84",
        DATUM["WGS_1984",
            SPHEROID["WGS 84",6378137,298.257223563,
                AUTHORITY["EPSG","7030"]],
            AUTHORITY["EPSG","6326"]],
        PRIMEM["Greenwich",0,
            AUTHORITY["EPSG","8901"]],
        UNIT["degree",0.01745329251994328,
            AUTHORITY["EPSG","9122"]],
        AUTHORITY["EPSG","4326"]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",0],
    PARAMETER["scale_factor",1],
    PARAMETER["false_easting",500000],
    PARAMETER["false_northing",8.489173064052736e-313],
    UNIT["Meter",1]]
fail

Change History (2)

comment:1 Changed 12 years ago by Even Rouault

Component: defaultGDAL_Raster
Resolution: fixed
Status: newclosed

Fixed in trunk in r14013 and in branches/1.5 in r14014.

szekerest-vc80-full is now green.

comment:2 Changed 12 years ago by warmerdam

Cc: dron added; dronk removed

Fixed Andrey's id in cc: list.

Note: See TracTickets for help on using tickets.