Opened 14 years ago
Closed 14 years ago
#3714 closed defect (fixed)
Illegal use of GDALGetRasterX/YSize() on band objects
Reported by: | Even Rouault | Owned by: | Even Rouault |
---|---|---|---|
Priority: | normal | Milestone: | 1.7.3 |
Component: | GDAL_Raster | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
alg/gdalwarper.cpp and alg/gdalproximity.cpp incorrectly use GDALGetRasterX/YSize() on band objects. They should rather use GDALGetRasterBandX/YSize().
This was unnoticed since the offset of the nRasterXSize and nRasterYSize members are identical in the GDALDataset and GDALRasterBand classes, but this is *very very* fragile ! I discovered this when adding a new member to the GDALRasterBand class.
Note:
See TracTickets
for help on using tickets.
Fixed in trunk (r20187) and in branches/1.7 (r20188)