Opened 11 years ago

Closed 11 years ago

#2504 closed defect (fixed)

GDALNoDataMaskBand::IReadBlock doesn't behave correctly when eWrkDT != eDataType

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 1.5.3
Component: GDAL_Raster Version: 1.5.0
Severity: normal Keywords: nodata mask
Cc: warmerdam

Description

Incorrect behaviour will happen if eWrkDT != eDataType, and possibly crash if sizeof(eDataType) > sizeof(eWrkDT).

The fix is to do a RasterIO with the working data type instead of doing a ReadBlock? (that uses the natural data type).

Change History (1)

comment:1 Changed 11 years ago by Even Rouault

Resolution: fixed
Status: newclosed

Fixed in trunk in r15030 and in branches/1.5 in r15031

Note: See TracTickets for help on using tickets.