Ticket #2504 (closed defect: fixed)
GDALNoDataMaskBand::IReadBlock doesn't behave correctly when eWrkDT != eDataType
| Reported by: | rouault | Owned by: | 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
Note: See
TracTickets for help on using
tickets.
