Ticket #2778 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

ENVI importer crashes when attempting to open an ENVI signature file.

Reported by: tclarke Owned by: warmerdam
Priority: normal Milestone: 1.5.5
Component: GDAL_Raster Version: 1.3.2
Severity: normal Keywords:
Cc:

Description

Around line 1816 in envidataset.cpp, there's a crash if attempting to open a valid ENVI file but of an unknown type. The problem is that the "delete poDS;" should be after the CPLError() since CPLError() references memory cleaned up by the delete.

Change History

Changed 3 years ago by rouault

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 1.6.1

Fixed in trunk in r16100, in branches/1.6 in r16101 and in branches/1.5 in r16102 (if there is a 1.5.5 release someday)

Changed 3 years ago by rouault

  • milestone changed from 1.6.1 to 1.5.5
Note: See TracTickets for help on using tickets.