Opened 15 years ago
Last modified 15 years ago
#2751 closed defect
GRIB driver asserts (crashes) on opening this dataset — at Initial Version
Reported by: | gaopeng | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 1.6.1 |
Component: | GDAL_Raster | Version: | 1.6.0 |
Severity: | normal | Keywords: | grib |
Cc: | rprinceley |
Description
GRIB driver asserts (crashes) on opening this dataset. The "nSectSize" is a large number, and the memory allocation fails.
memcpy( &nSectSize, abyHead, 4 ); CPL_MSBPTR32( &nSectSize );
if( VSIFSeekL( poDS->fp, nSectSize-5, SEEK_CUR ) != 0
VSIFReadL( abyHead, 5, 1, poDS->fp ) != 1 ) break;
Note:
See TracTickets
for help on using tickets.