Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#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.

Change History (2)

comment:1 by Even Rouault, 12 years ago

Resolution: fixed
Status: newclosed

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)

comment:2 by Even Rouault, 11 years ago

Milestone: 1.8.2

Milestone 1.8.2 deleted

Note: See TracTickets for help on using tickets.