Opened 15 years ago

Closed 14 years ago

Last modified 11 years ago

#3010 closed defect (fixed)

GRIB driver crashes on specific dataset ( Sample_WindWavesSwell.grb )

Reported by: rprinceley Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords:
Cc: Kyle Shannon

Description

gdal_translate -of gtiff Sample_WindWavesSwell.grb out.tif

Causes a crash in GRIBRasterBand::IReadBlock at memcpy:

    if (!m_Grib_Data)
    {
        GRIBDataset *poGDS = (GRIBDataset *) poDS;

        FileDataSource grib_fp (poGDS->fp);

        ReadGribData(grib_fp, start, subgNum, &m_Grib_Data, &m_Grib_MetaData);
    }

    // Somehow this decoder guarantees us that the image is upside-down (GRIB scan mode 0100). Therefore reverse it again.
    memcpy(pImage, m_Grib_Data + nRasterXSize * (nRasterYSize - nBlockYOff - 1), nRasterXSize * sizeof(double));

Attachments (1)

Sample_WindWavesSwell.grb (22.4 KB ) - added by rprinceley 15 years ago.

Download all attachments as: .zip

Change History (4)

by rprinceley, 15 years ago

Attachment: Sample_WindWavesSwell.grb added

comment:1 by Kyle Shannon, 15 years ago

Cc: Kyle Shannon added

comment:2 by Even Rouault, 14 years ago

Milestone: 1.6.4
Resolution: fixed
Status: newclosed

duplicate of #3246.

comment:3 by Even Rouault, 11 years ago

Milestone: 1.6.4

Milestone 1.6.4 deleted

Note: See TracTickets for help on using tickets.