Ticket #2934 (closed defect: fixed)
Memory overwrite while zooming an ECW image
| Reported by: | oren | Owned by: | warmerdam |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.6.1 |
| Component: | GDAL_Raster | Version: | unspecified |
| Severity: | normal | Keywords: | ECW |
| Cc: |
Description
Symptom: When calling GDALRasterIO() with a target region larger than the source region (the super sampling case), it causes a memory overwrite.
Solution: In ECWRasterBand::IRasterIO(), “ecwdataset.cpp”, line 446 - change the last parameter of memcpy() from “nLineSpace” to “nBufXSize * nPixelSpace”.
Change History
Note: See
TracTickets for help on using
tickets.
