#4338 closed defect (fixed)
gdalinfo crashes on the sample DIMAP in autotest in 1.8 branch
Reported by: | Even Rouault | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | GDAL_Raster | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: | aboudreault |
Description
The reason is that :
poDS->SetBand( iBand, poDS->poImageDS->GetRasterBand( iBand ) );
It is not safe to incorporate a band of a dataset in another dataset. At some point, some methods of the rasterband class of image DS will suppose that their poDS is a poImageDS class, and not a DIMAP class
This has been solved in trunk by using a wrapper band object.
Note:
See TracTickets
for help on using tickets.
r23359 /branches/1.8/gdal/frmts/dimap/dimapdataset.cpp: DIMAP: partial backport of r21665 to avoid crash on gdalinfo autotest/gdrivers/data/METADATA.DIM (#4338)