Opened 18 years ago
Last modified 17 years ago
#1331 closed defect
HDF4 EOS case EOS GRID memory error. — at Initial Version
Reported by: | Owned by: | warmerdam | |
---|---|---|---|
Priority: | normal | Milestone: | 1.4.2 |
Component: | GDAL_Raster | Version: | unspecified |
Severity: | major | Keywords: | hdf |
Cc: |
Description
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
Note:
See TracTickets
for help on using tickets.