Ticket #1331 (closed defect: fixed)
HDF4 EOS case EOS GRID memory error.
| Reported by: | denis.nadeau@… | Owned by: | warmerdam |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.4.2 |
| Component: | GDAL_Raster | Version: | unspecified |
| Severity: | major | Keywords: | hdf |
| Cc: |
Description (last modified by warmerdam) (diff)
hdf4imagedataset.cpp line 2221 poDS->iBandDim = i; When Dimension List does not have the word "Band", this variable never get set and it is initialized to -1 in the constructor. This cause a memory error in IReadBlock method. hdf4imagedataset.cpp line 429 aiStart[poGDS->iBandDim] = nBand - 1; aiEdges[poGDS->iBandDim] = 1; aiEdges[-1]=1 on my machine cause eERR variable to be set to CPL_DEBUG and causing a faulty GDAL Read error, for eERR should be CPL_None when IReadBlock returns. I guess in the 3D array case this should be set to 0. Denis
Change History
Note: See
TracTickets for help on using
tickets.
