Ticket #1914 (closed defect: fixed)

Opened 9 months ago

Last modified 9 months ago

GDALRasterBlock::Internalize() failures not handled properly

Reported by: warmerdam Assigned to: warmerdam
Priority: normal Milestone: 1.4.3
Component: GDAL_Raster Version: 1.4.2
Severity: normal Keywords: GDALRasterBlock
Cc:

Description

The GDALRasterBlock::Internalize() method allocates memory for a cache block. On failure the GDALRasterBand::GetLockedBlockRef?() is not releasing the block lock before trying to delete it resulting in an assertion failure in debug builds. The internalize memory allocation failure message also really sucks "Internalize failed".

Change History

10/14/07 23:30:05 changed by warmerdam

  • status changed from new to closed.
  • resolution set to fixed.

Improved error message and fixed lock release issue in trunk (r12425) and 1.4 branch (r12426).