Opened 17 years ago

Closed 17 years ago

#1914 closed defect (fixed)

GDALRasterBlock::Internalize() failures not handled properly

Reported by: warmerdam Owned by: 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 (1)

comment:1 by warmerdam, 17 years ago

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.