Ticket #2277 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

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

Reported by: rouault Owned by: 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

Changed 4 years ago by rouault

  • status changed from new to closed
  • resolution set to fixed
  • component changed from default to GDAL_Raster

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

szekerest-vc80-full is now green.

Changed 4 years ago by warmerdam

  • cc dron added; dronk removed

Fixed Andrey's id in cc: list.

Note: See TracTickets for help on using tickets.